Skip to content

Commit

Permalink
revert NormalizeAngle code change
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhooL committed Dec 2, 2024
1 parent a2e68ae commit 001ccff
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions FS25_EnhancedVehicle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
--
-- Author: Majo76
-- email: ls (at) majo76 (dot) de
-- @Date: 01.12.2024
-- @Date: 02.12.2024
-- @Version: 1.1.2.2

--[[
CHANGELOG
2024-12-02 - V1.1.2.2
+ several bugfixes, code optimizations and translations additions/updates
- revert NormalizeAngle code change
2024-11-30 - V1.1.1.0
+ added new feature: front/rear hydraulic unfold/fold on keypress
+ added translations: ru, cs, pl
Expand Down Expand Up @@ -2442,7 +2446,14 @@ end
-- # make sure an angle is >= 0 and < 360

function NormalizeAngle(a)
return (a % 360 + 360) % 360
while a < 0 do
a = a + 360
end
while a >= 360 do
a = a - 360
end

return a
end

-- #############################################################################
Expand Down

0 comments on commit 001ccff

Please sign in to comment.