mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 03:18:25 +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)
|
else if (type == AutostrafeType_Basic)
|
||||||
{
|
{
|
||||||
float delta = angles[1] - g_flOldYawAngle[client];
|
float delta = AngleNormalize(angles[1] - g_flOldYawAngle[client]);
|
||||||
|
|
||||||
if (delta < 0.0)
|
if (delta < 0.0)
|
||||||
{
|
{
|
||||||
vel[1] = g_fMaxMove;
|
vel[1] = g_fMaxMove;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user