EntityDef: saner precache timeframe check.

This commit is contained in:
Marco Cawthorne 2025-02-09 01:35:07 -08:00
parent 143e247cf3
commit 7bd9ea1486
3 changed files with 3 additions and 3 deletions

View file

@ -132,7 +132,7 @@ int trace_surfaceflagsi;
string startspot;
string __fullspawndata;
var bool g_ents_initialized = FALSE;
var bool g_ents_initialized = false;
/* main is a qcc leftover */
void main(void)

View file

@ -443,7 +443,7 @@ initents(void)
Vote_Init();
ChangeTarget_Activate();
g_ents_initialized = TRUE;
g_ents_initialized = true;
/* engine hacks for dedicated servers */
cvars.SetFloat("s_nominaldistance", 1536);

View file

@ -441,7 +441,7 @@ EntityDef_Precaches(int index)
{
int defID = 0i;
if (time > 2.0f) {
if (g_ents_initialized == true) {
return;
}