Merge pull request #1103 from SilentSpike/medical_typofix

Trivial variable name fix for moduleAssignMedicalVehicle function
This commit is contained in:
Glowbal 2015-05-10 22:37:54 +02:00
commit e6a8f0b295
3 changed files with 3 additions and 3 deletions

View File

@ -21,4 +21,4 @@ _vehicle = vehicle _unit;
if (_unit == _vehicle) exitWith {false};
if (_unit in [driver _vehicle, gunner _vehicle, commander _vehicle]) exitWith {false};
_vehicle getVariable [QGVAR(isMedic), getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> "attendant") == 1]
_vehicle getVariable [QGVAR(medicClass), getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> "attendant") == 1]

View File

@ -15,4 +15,4 @@
private ["_vehicle"];
_vehicle = _this select 0;
_vehicle getVariable [QGVAR(isMedic), getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> "attendant") == 1]
_vehicle getVariable [QGVAR(medicClass), getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> "attendant") == 1]

View File

@ -37,7 +37,7 @@ if (!isNull _logic) then {
_list = "[" + _nilCheckPassedList + "]";
_parsedList = [] call compile _list;
_setting = _logic getvariable ["enabled", false];
_setting = _logic getvariable ["enabled", 0];
_objects = synchronizedObjects _logic;
if (!(_objects isEqualTo []) && _parsedList isEqualTo []) then {
{