Fix undefined color error in repair_vehicle.sqf

Same color error as f92b751 .

Also same issue in salvage_vehicle.sqf as described in #1828

Added setVariable exceptions for tank hit points.
This commit is contained in:
ebaydayz
2016-12-24 20:17:08 -05:00
parent 811e06ffe2
commit 7496ef5d5c
4 changed files with 12 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ if (_is6WheelType) then {
_configVeh = configFile >> "cfgVehicles" >> "RepairParts" >> _x;
_part = getText(_configVeh >> "part");
if (isNil "_part") then { _part = "PartGeneric"; };
if (_part == "") then { _part = "PartGeneric"; };
//get every damaged part no matter how tiny damage is!
_damagePercent = str(round(_damage * 100))+"% Damage";