Moved verification to public function, removed unnecessary str

This commit is contained in:
jonpas
2015-07-13 19:56:25 +02:00
parent 89c5218bbd
commit 4fa1c7dc0a
2 changed files with 8 additions and 5 deletions

View File

@ -33,9 +33,6 @@ _images = [_logic getVariable ["Images", ""], true, false] call FUNC(makeList);
_names = [_logic getVariable ["Names", ""], true, false] call FUNC(makeList);
_duration = _logic getVariable ["Duration", 0];
// Exit if Images or Names fields are empty
if (_images == [] || {_names == []} || {count _images != count _names}) exitWith {diag_log "[ACE] ERROR: Slideshow Module NOT Initialized: Images or Names fields can NOT be empty and must have equal number of items!"};
// Prepare with actions
[_objects, _controllers, _images, _names, _duration] call FUNC(createSlideshow);