mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix: Proper dragger reset on spec
This commit is contained in:
parent
ccad2d6502
commit
bf13363cd2
|
@ -30,10 +30,10 @@ CDragger::CDragger(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool NW,
|
|||
|
||||
void CDragger::Move()
|
||||
{
|
||||
if (m_Target && m_Target->IsAlive()
|
||||
if (m_Target && (!m_Target->IsAlive() || (m_Target->IsAlive()
|
||||
&& (m_Target->m_Super || m_Target->IsPaused()
|
||||
|| (m_Layer == LAYER_SWITCH
|
||||
&& !GameServer()->Collision()->m_pSwitchers[m_Number].m_Status[m_Target->Team()])))
|
||||
&& !GameServer()->Collision()->m_pSwitchers[m_Number].m_Status[m_Target->Team()])))))
|
||||
m_Target = 0;
|
||||
|
||||
mem_zero(m_SoloEnts, sizeof(m_SoloEnts));
|
||||
|
|
Loading…
Reference in a new issue