entWatch4: Register spawned items on late load.
This commit is contained in:
parent
73ecacb53c
commit
39df383460
@ -165,6 +165,15 @@ public void OnMapStart()
|
||||
while (hConfig.GotoNextKey());
|
||||
}
|
||||
|
||||
if (g_bLate)
|
||||
{
|
||||
int entity = INVALID_ENT_REFERENCE;
|
||||
while ((entity = FindEntityByClassname(entity, "*")) != INVALID_ENT_REFERENCE)
|
||||
{
|
||||
OnEntitySpawned(entity);
|
||||
}
|
||||
}
|
||||
|
||||
delete hConfig;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user