mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Fix style
This commit is contained in:
parent
c53e0af6ef
commit
28cd6ad2a5
|
@ -1618,7 +1618,7 @@ void CGameContext::ConTeleXY(IConsole::IResult *pResult, void *pUserData)
|
|||
}
|
||||
|
||||
vec2 Pos = {};
|
||||
|
||||
|
||||
if(pResult->NumArguments() != 2)
|
||||
{
|
||||
pSelf->SendChatTarget(pCallingPlayer->GetCID(), "Can't recognize specified arguments. Usage: /tpxy x y, e.g. /tpxy 9 3.");
|
||||
|
@ -1666,7 +1666,7 @@ void CGameContext::ConTeleXY(IConsole::IResult *pResult, void *pUserData)
|
|||
|
||||
Pos = {std::clamp(BaseX, (-OuterKillTileBoundaryDistance) + 1.f, (-OuterKillTileBoundaryDistance) + MapWidth - 1.f), std::clamp(BaseY, (-OuterKillTileBoundaryDistance) + 1.f, (-OuterKillTileBoundaryDistance) + MapHeight - 1.f)};
|
||||
}
|
||||
|
||||
|
||||
// Teleport tee
|
||||
pSelf->Teleport(pCallingCharacter, Pos);
|
||||
pCallingCharacter->UnFreeze();
|
||||
|
|
Loading…
Reference in a new issue