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());
|
while (hConfig.GotoNextKey());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (g_bLate)
|
||||||
|
{
|
||||||
|
int entity = INVALID_ENT_REFERENCE;
|
||||||
|
while ((entity = FindEntityByClassname(entity, "*")) != INVALID_ENT_REFERENCE)
|
||||||
|
{
|
||||||
|
OnEntitySpawned(entity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
delete hConfig;
|
delete hConfig;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user