entWatch4: Register spawned items on late load.

This commit is contained in:
zaCade 2019-04-08 12:24:10 +02:00
parent 73ecacb53c
commit 39df383460

View File

@ -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;
}