Skip to content

Commit 792604e

Browse files
committed
fixes a bug where player was not able to quit the game in God mode
1 parent 04f4b33 commit 792604e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,9 @@ fn main() -> std::io::Result<()> {
624624
physics(&mut world);
625625
match world.game_mode {
626626
GameMode::God => {
627-
world.status = PlayerStatus::Alive;
627+
if world.status != PlayerStatus::Quit {
628+
world.status = PlayerStatus::Alive;
629+
}
628630
}
629631
GameMode::Normal => {}
630632
}

0 commit comments

Comments
 (0)