mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Merge #1938
1938: Explode grenades twice at the end if they have lifespans. Fix #1559 r=heinrich5991 a=Learath2 Just by looking at the code I think this is what was intended but only testing can make sure. Co-authored-by: Learath <learath2@gmail.com>
This commit is contained in:
commit
8db2694c5e
|
@ -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