Code cleanup

This commit is contained in:
PabstMirror
2015-02-11 15:43:08 -06:00
parent 24bd515814
commit 7545a6c3d8
3 changed files with 14 additions and 11 deletions

View File

@ -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;
};