mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 01:47:45 +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;
|
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++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user