mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
normalize angle difference just in case
This commit is contained in:
parent
e43c011711
commit
d1b2ffd461
@ -542,7 +542,8 @@ public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3
|
||||
}
|
||||
else if (type == AutostrafeType_Basic)
|
||||
{
|
||||
float delta = angles[1] - g_flOldYawAngle[client];
|
||||
float delta = AngleNormalize(angles[1] - g_flOldYawAngle[client]);
|
||||
|
||||
if (delta < 0.0)
|
||||
{
|
||||
vel[1] = g_fMaxMove;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user