fix math issue

This commit is contained in:
jokoho48 2015-08-29 14:54:42 +02:00
parent 275f04d876
commit 588f5adce8

View File

@ -22,13 +22,13 @@
GVAR(nextFrameBufferA) = GVAR(nextFrameBufferB);
GVAR(nextFrameBufferB) = [];
GVAR(nextFrameNo) = diag_frameno + 1;
//Handle the waitUntilAndExec array:
_deleted = 0;
{
_x params ["_condition", "_code", "_args"];
if ((_args call _condition)) then {
GVAR(waitUntilAndExecArray) deleteAt (_forEachIndex + _deleted);
GVAR(waitUntilAndExecArray) deleteAt (_forEachIndex - _deleted);
_deleted = _deleted + 1;
_args call _code;
};