More tele fixes

This commit is contained in:
def 2014-05-07 14:30:26 +02:00
parent 89b55a30f9
commit 15aa47fa07

View file

@ -261,6 +261,8 @@ void CGameContext::ConToTeleporter(IConsole::IResult *pResult, void *pUserData)
if (pChr)
{
pChr->Core()->m_Pos = TelePos;
pChr->m_Pos = pSelf->m_apPlayers[TeleTo]->m_ViewPos;
pChr->m_PrevPos = pSelf->m_apPlayers[TeleTo]->m_ViewPos;
pChr->m_DDRaceState = DDRACE_CHEAT;
}
}
@ -279,6 +281,8 @@ void CGameContext::ConToCheckTeleporter(IConsole::IResult *pResult, void *pUserD
if (pChr)
{
pChr->Core()->m_Pos = TelePos;
pChr->m_Pos = pSelf->m_apPlayers[TeleTo]->m_ViewPos;
pChr->m_PrevPos = pSelf->m_apPlayers[TeleTo]->m_ViewPos;
pChr->m_DDRaceState = DDRACE_CHEAT;
}
}