Explorar o código

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

spesk1 %!s(int64=5) %!d(string=hai) anos
pai
achega
55a64416cb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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!");