Skip to content

Commit

Permalink
Fix: Allow teleporting players even when they touch a stopper (Thanks…
Browse files Browse the repository at this point in the history
… to Flummi)
  • Loading branch information
def- committed May 7, 2014
1 parent 9e53ed5 commit 89b55a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/server/ddracecommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 89b55a3

Please sign in to comment.