Added some sanity checks to the module setting initialization

This commit is contained in:
ulteq 2015-04-13 12:54:06 +02:00
parent 6b44a3f3f9
commit c8aa3032fe
2 changed files with 4 additions and 0 deletions

View File

@ -31,3 +31,5 @@ if !(_activated) exitWith {};
[_logic, QGVAR(alwaysSimulateForSnipers), "alwaysSimulateForSnipers"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(simulationInterval), "simulationInterval"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(simulationRadius), "simulationRadius"] call EFUNC(common,readSettingFromModule);
GVAR(simulationInterval) = 0 max GVAR(simulationInterval) min 0.2;

View File

@ -24,3 +24,5 @@ if !(_activated) exitWith {};
[_logic, QGVAR(simulationInterval), "simulationInterval"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(simulationRadius), "simulationRadius"] call EFUNC(common,readSettingFromModule);
GVAR(simulationInterval) = 0 max GVAR(simulationInterval) min 0.2;