mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Engine: light cleanup to CL_MoveEx()
Make *chan and commandTick const.
This commit is contained in:
parent
42e02b4569
commit
9236008159
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user