From 2f81fdf19ac0b79307475f6cc671ea07f3af61d1 Mon Sep 17 00:00:00 2001 From: Julian Date: Thu, 12 Mar 2020 16:43:48 -0300 Subject: [PATCH] Spawn() should be called before Use(). --- src/dlls/explode.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dlls/explode.cpp b/src/dlls/explode.cpp index 0df9bc5..63125d3 100755 --- a/src/dlls/explode.cpp +++ b/src/dlls/explode.cpp @@ -282,10 +282,12 @@ void ExplosionCreate( const Vector ¢er, 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(); } }