소스 검색

Fixed issue where the cop event didn't stop if you were arrested

spesk1 5 년 전
부모
커밋
55a64416cb
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/main.rs

+ 1 - 0
src/main.rs

@@ -423,6 +423,7 @@ fn cops_event(player: &mut Player) {
                     if arrest == 0 {
                         println!("The cops got you! They confiscate your cash and stash!");
                         player.arrested();
+                        done = true;
                     }
                 } else {
                     println!("They miss and you keep running!");