mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
More tele fixes
This commit is contained in:
parent
89b55a30f9
commit
15aa47fa07
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue