Skip to content

Commit

Permalink
Update fnc_mainLoop.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Sep 11, 2024
1 parent 7b93c2e commit 94da64c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/advanced_fatigue/functions/fnc_mainLoop.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private _velocity = velocity ACE_player;
private _normal = surfaceNormal (getPosWorld ACE_player);
private _movementVector = vectorNormalized _velocity;
private _fwdAngle = asin (_movementVector select 2);
private _sideAngle = if ((getPosATL ACE_player) select 2 > 0.02) then {
private _sideAngle = if ((getPosATL ACE_player) select 2 > 0.01) then {
0 // ignore terrain normal if not touching it
} else {
private _sideVector = vectorNormalized (_movementVector vectorCrossProduct _normal);
Expand Down

0 comments on commit 94da64c

Please sign in to comment.