Fix: Proper dragger reset on spec

This commit is contained in:
def 2014-05-08 15:45:02 +02:00
parent ccad2d6502
commit bf13363cd2

View file

@ -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));