Fix players in race spawning with invisible gauntlet

This commit is contained in:
Zack Middleton 2023-06-06 02:43:38 -05:00
parent c37b8b8f52
commit ed6fbd1796

View file

@ -1657,7 +1657,7 @@ void ClientSpawn(gentity_t *ent) {
// fire the targets of the spawn point // fire the targets of the spawn point
G_UseTargets(spawnPoint, ent); G_UseTargets(spawnPoint, ent);
// select the highest weapon number available, after any spawn given items have fired // select the highest weapon number available, after any spawn given items have fired
client->ps.weapon = 1; client->ps.weapon = WP_NONE;
for (i = WP_NUM_WEAPONS - 1 ; i > 0 ; i--) { for (i = WP_NUM_WEAPONS - 1 ; i > 0 ; i--) {
if (client->ps.stats[STAT_WEAPONS] & (1 << i)) { if (client->ps.stats[STAT_WEAPONS] & (1 << i)) {