From 15aa47fa071d34ab9d9c5ab9d85b47b57b8ed450 Mon Sep 17 00:00:00 2001 From: def Date: Wed, 7 May 2014 14:30:26 +0200 Subject: [PATCH] More tele fixes --- src/game/server/ddracecommands.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/server/ddracecommands.cpp b/src/game/server/ddracecommands.cpp index e3105c0e6..b9c689f89 100644 --- a/src/game/server/ddracecommands.cpp +++ b/src/game/server/ddracecommands.cpp @@ -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; } }