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:
parent
006d8308c3
commit
13086d3b5d
@ -2815,7 +2815,7 @@ edict_t *EntSelectSpawnPoint( CBaseEntity *pPlayer )
|
||||
nNumRandomSpawnsToTry = 0;
|
||||
CBaseEntity* pEnt = 0;
|
||||
|
||||
while( ( pEnt = UTIL_FindEntityByClassname( 0, "info_player_deathmatch" )))
|
||||
while( ( pEnt = UTIL_FindEntityByClassname( pEnt, "info_player_deathmatch" )))
|
||||
nNumRandomSpawnsToTry++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user