2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-21 17:36:18 +01:00

server: fix infinite loop while trying to look for spawn spot for deathmatch

Fixes: 253a3cb8d4 ("Better spawn spot randomization from HL25 update.")
This commit is contained in:
Alibek Omarov 2024-10-17 20:08:11 +03:00
parent 006d8308c3
commit 13086d3b5d

View File

@ -2815,7 +2815,7 @@ edict_t *EntSelectSpawnPoint( CBaseEntity *pPlayer )
nNumRandomSpawnsToTry = 0; nNumRandomSpawnsToTry = 0;
CBaseEntity* pEnt = 0; CBaseEntity* pEnt = 0;
while( ( pEnt = UTIL_FindEntityByClassname( 0, "info_player_deathmatch" ))) while( ( pEnt = UTIL_FindEntityByClassname( pEnt, "info_player_deathmatch" )))
nNumRandomSpawnsToTry++; nNumRandomSpawnsToTry++;
} }