Skip to content

Commit

Permalink
fix/dynamite hp <= 0 (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
howard9199 authored Jul 9, 2022
1 parent 3a6165f commit 784d7eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/game.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void game_next(Game *game) {
respond_all_chat("Will the dynamite explode?");
dynamite_judge(game, player->id);
died_player(game, -1, player->id);
if (game->finished) return;
if (game->finished || player->hp <= 0) return;
}
if (player->jail != NULL) {
DEBUG_PRINT("judge: jail\n");
Expand Down

0 comments on commit 784d7eb

Please sign in to comment.