Spawn() should be called before Use().

This commit is contained in:
Julian
2020-03-12 16:43:48 -03:00
parent 359494e98c
commit 2f81fdf19a

View File

@@ -282,10 +282,12 @@ void ExplosionCreate( const Vector &center, const Vector &angles, edict_t *pOwne
pExplosion->SetThink( &CMBaseEntity::SUB_CallUseToggle );
pExplosion->pev->nextthink = gpGlobals->time + delay;
}
else
pExplosion->Spawn();
if ( delay <= 0.0f )
{
pExplosion->Use( NULL, NULL, USE_TOGGLE, 0 );
}
pExplosion->Spawn();
}
}