Fix wind display angle being reversed

This commit is contained in:
PabstMirror 2016-01-22 20:43:22 -06:00
parent 5df211c586
commit 3a62956e24

View File

@ -56,7 +56,7 @@ TRACE_1("Starting Wind Info PFEH", GVAR(WindInfo));
private _playerDir = (ACE_player call CBA_fnc_headDir) select 0;
private _windDir = (ACE_wind select 0) atan2 (ACE_wind select 1);
_windDir = 30 * (round(((_playerDir - _windDir + 360) % 360) / 30));
_windDir = 30 * (round(((_windDir - _playerDir + 360) % 360) / 30));
// Color Codes from https://en.wikipedia.org/wiki/Beaufort_scale#Modern_scale
private _beaufortNumber = 0;