Fix style

This commit is contained in:
Dennis Felsing 2024-01-17 00:49:32 +01:00
parent c53e0af6ef
commit 28cd6ad2a5

View file

@ -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();