mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-07-01 20:37:17 +02:00
UserCmd: use the preferred clamp function
Tends to get optimized better.
This commit is contained in:
@ -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
|
||||
// it couldn't be circumvented by busting out the client side clamps.
|
||||
if (host_timescale->GetFloat() == 1.0f)
|
||||
move->frametime = clamp(move->frametime,
|
||||
move->frametime = Clamp(move->frametime,
|
||||
usercmd_frametime_min.GetFloat(),
|
||||
usercmd_frametime_max.GetFloat());
|
||||
|
||||
|
Reference in New Issue
Block a user