mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
UserCmd: use the preferred clamp function
Tends to get optimized better.
This commit is contained in:
parent
0ab2b3f800
commit
3c68b491e7
@ -51,7 +51,7 @@ int ReadUserCmd(bf_read* buf, CUserCmd* move, CUserCmd* from)
|
|||||||
// time to the exact values that the client should be using to make sure
|
// time to the exact values that the client should be using to make sure
|
||||||
// it couldn't be circumvented by busting out the client side clamps.
|
// it couldn't be circumvented by busting out the client side clamps.
|
||||||
if (host_timescale->GetFloat() == 1.0f)
|
if (host_timescale->GetFloat() == 1.0f)
|
||||||
move->frametime = clamp(move->frametime,
|
move->frametime = Clamp(move->frametime,
|
||||||
usercmd_frametime_min.GetFloat(),
|
usercmd_frametime_min.GetFloat(),
|
||||||
usercmd_frametime_max.GetFloat());
|
usercmd_frametime_max.GetFloat());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user