0
0
Fork 0
mirror of https://github.com/nzp-team/quakec.git synced 2025-04-25 19:12:53 +00:00

SERVER: Properly remove all weapons on game over

The code assumed the IDs of the weapons would stay the same after one is
removed. Instead, loop and call Weapon_RemoveWeapon(0).
This commit is contained in:
Peter0x44 2025-03-03 11:56:03 +00:00
parent 2c430e5abf
commit 282ef03c95

View file

@ -162,7 +162,7 @@ void() EndGameSetup =
Player_AddScore(self, self.score, false);
for (float i = 0; i < MAX_PLAYER_WEAPONS; ++i)
{
Weapon_RemoveWeapon(i);
Weapon_RemoveWeapon(0);
}
return;
}