SERVER: Fix InitRounds leaking spawn points on Soft_Restart

This commit is contained in:
cypress 2023-12-14 14:57:12 -05:00
parent 847556d5f1
commit 0fb9eaae3d
1 changed files with 6 additions and 1 deletions

View File

@ -341,7 +341,12 @@ void() InitRounds =
totalpowerups = 0;
powerup_activate = 2000;
powerup_score_threshold = ((player_count + 1) * G_STARTPOINTS) + powerup_activate;
spawnAllZombEnts();
// cypress -- fix Soft_Restart spawning multiple
// pairs of zombie spawn points.
if (!roundinit)
spawnAllZombEnts();
round_changetime = time + 3.5;
rounds_change = 1;
roundinit = 1;