mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Remove the initial lifespan check
This commit is contained in:
parent
63998eaa84
commit
a650a3c320
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,6 @@ public:
|
|||
|
||||
private:
|
||||
vec2 m_Direction;
|
||||
int m_InitialLifeSpan;
|
||||
int m_LifeSpan;
|
||||
int m_Owner;
|
||||
int m_Type;
|
||||
|
|
Loading…
Reference in a new issue