EntityDef: saner precache timeframe check.
This commit is contained in:
parent
143e247cf3
commit
7bd9ea1486
3 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -441,7 +441,7 @@ EntityDef_Precaches(int index)
|
|||
{
|
||||
int defID = 0i;
|
||||
|
||||
if (time > 2.0f) {
|
||||
if (g_ents_initialized == true) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue