Bugfix return absolute positive number with modulo

This commit is contained in:
Daniël 2023-11-13 10:02:25 +01:00 committed by GitHub
parent 52c1de73a5
commit 9cc7fdcd8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ if (cbChecked _aceTimestamp && {ACE_player call FUNC(canTimestamp)}) then {
case 2: {
systemTimeUTC params ["", "", "", "_hour", "_min", "_sec"];
_hour = _hour + round (GVAR(timestampUTCOffset));
_hour = _hour % 24;
_hour = abs (_hour % 24);
_hour + _min/60 + _sec/3600
};
default {