mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Code cleanup
This commit is contained in:
@ -63,13 +63,13 @@ _updateMagazinesOnPlayerFnc = {
|
||||
};
|
||||
|
||||
if (_nextEventIsBullet) then {
|
||||
playSound QGVAR(soundMagazineFinished);
|
||||
playSound QGVAR(soundRoundFinished);
|
||||
if ((((count _simEvents) % 3) == 0) || {(count _simEvents) == 1}) then {
|
||||
//For performance - only update mags every 3 bullets (or if it's the last event)
|
||||
call _updateMagazinesOnPlayerFnc;
|
||||
};
|
||||
} else {
|
||||
playSound QGVAR(soundRoundFinished);
|
||||
playSound QGVAR(soundMagazineFinished);
|
||||
call _updateMagazinesOnPlayerFnc;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user