Engine: light cleanup to CL_MoveEx()

Make *chan and commandTick const.
This commit is contained in:
Kawe Mazidjatari 2024-04-12 20:33:36 +02:00
parent 42e02b4569
commit 9236008159

View File

@ -29,13 +29,12 @@ void CL_MoveEx()
if (!v_Host_ShouldRun())
return;
int commandTick = -1;
if (cl->m_CurrFrameSnapshot)
commandTick = cl->m_CurrFrameSnapshot->m_TickUpdate.m_nCommandTick;
const int commandTick = cl->m_CurrFrameSnapshot
? cl->m_CurrFrameSnapshot->m_TickUpdate.m_nCommandTick
: -1;
bool sendPacket = true;
CNetChan* chan = cl->m_NetChannel;
CNetChan* const chan = cl->m_NetChannel;
// Only perform clamping and packeting if the timescale value is default,
// else the timescale change won't be handled in the player's movement.