Fix: Allow teleporting players even when they touch a stopper (Thanks to Flummi)

This commit is contained in:
def 2014-05-07 04:13:59 +02:00
parent 9e53ed5367
commit 89b55a30f9

View file

@ -298,6 +298,8 @@ void CGameContext::ConTeleport(IConsole::IResult *pResult, void *pUserData)
if (pChr && pSelf->GetPlayerChar(TeleTo))
{
pChr->Core()->m_Pos = pSelf->m_apPlayers[TeleTo]->m_ViewPos;
pChr->m_Pos = pSelf->m_apPlayers[TeleTo]->m_ViewPos;
pChr->m_PrevPos = pSelf->m_apPlayers[TeleTo]->m_ViewPos;
pChr->m_DDRaceState = DDRACE_CHEAT;
}
}