jblanked 9 miesięcy temu
rodzic
commit
f718339e62
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      game/player.c

+ 1 - 1
game/player.c

@@ -374,7 +374,7 @@ static void player_update(Entity *self, GameManager *manager, void *context)
 
 
         // if all enemies are dead, allow the "OK" button to switch levels
         // if all enemies are dead, allow the "OK" button to switch levels
         // otherwise the "OK" button will be used to attack
         // otherwise the "OK" button will be used to attack
-        if (game_context->enemy_count == 0 && !game_context->is_switching_level)
+        if (game_context->game_mode != GAME_MODE_PVP && game_context->enemy_count == 0 && !game_context->is_switching_level)
         {
         {
             game_context->is_switching_level = true;
             game_context->is_switching_level = true;
             save_player_context(player);
             save_player_context(player);