From a650a3c320b3efe1ccffa74b0a0d601b66dbbb32 Mon Sep 17 00:00:00 2001 From: Learath Date: Mon, 14 Oct 2019 02:28:24 +0200 Subject: [PATCH] Remove the initial lifespan check --- src/game/server/entities/projectile.cpp | 3 +-- src/game/server/entities/projectile.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/game/server/entities/projectile.cpp b/src/game/server/entities/projectile.cpp index 285818dec..c95552290 100644 --- a/src/game/server/entities/projectile.cpp +++ b/src/game/server/entities/projectile.cpp @@ -28,7 +28,6 @@ CProjectile::CProjectile m_Type = Type; m_Pos = Pos; m_Direction = Dir; - m_InitialLifeSpan = Span; m_LifeSpan = Span; m_Owner = Owner; m_Force = Force; @@ -154,7 +153,7 @@ void CProjectile::Tick() if(m_Explosive/*??*/ && (!pTargetChr || (pTargetChr && (!m_Freeze || (m_Type == WEAPON_SHOTGUN && Collide))))) { int Number = 1; - if(GameServer()->EmulateBug(BUG_GRENADE_DOUBLEEXPLOSION) && m_LifeSpan == -1 && m_InitialLifeSpan != 0) + if(GameServer()->EmulateBug(BUG_GRENADE_DOUBLEEXPLOSION) && m_LifeSpan == -1) { Number = 2; } diff --git a/src/game/server/entities/projectile.h b/src/game/server/entities/projectile.h index 11ac86db5..ad9a63200 100644 --- a/src/game/server/entities/projectile.h +++ b/src/game/server/entities/projectile.h @@ -32,7 +32,6 @@ public: private: vec2 m_Direction; - int m_InitialLifeSpan; int m_LifeSpan; int m_Owner; int m_Type;