Merge pull request #98 from Peter0x44/hud_gameover_nodraw

This commit is contained in:
cypress 2025-01-01 19:51:31 -05:00 committed by GitHub
commit a823256f6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -1989,7 +1989,7 @@ void(float width, float height) HUD_Draw =
return;
}
if ((getstatf(STAT_HEALTH) > 1) && !score_show)
if ((getstatf(STAT_HEALTH) > 1) && !score_show && !game_over)
{
Draw_Crosshair();

View file

@ -157,6 +157,13 @@ void() EndGameSetup =
NotifyGameEnd();
}
game_over = true;
Player_RemoveScore(self, self.points);
Player_AddScore(self, self.score, false);
for (float i = 0; i < MAX_PLAYER_WEAPONS; ++i)
{
Weapon_RemoveWeapon(i);
}
return;
}
float() push_away_zombies;