mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Remove unnecessary check. Fixes #714
This commit is contained in:
parent
1211746491
commit
079c53471c
|
@ -302,16 +302,13 @@ void CGameContext::ConTeleport(IConsole::IResult *pResult, void *pUserData)
|
|||
if (pResult->NumArguments() > 0)
|
||||
Tele = pResult->GetVictim();
|
||||
|
||||
if (pSelf->m_apPlayers[TeleTo])
|
||||
CCharacter* pChr = pSelf->GetPlayerChar(Tele);
|
||||
if (pChr && pSelf->GetPlayerChar(TeleTo))
|
||||
{
|
||||
CCharacter* pChr = pSelf->GetPlayerChar(Tele);
|
||||
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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue