Fixed localization on same type hitpoints

This commit is contained in:
jonpas 2015-08-24 01:13:42 +02:00
parent 396e01cd6e
commit e368ae28f5

View File

@ -95,6 +95,7 @@ _hitPointsAddedAmount = [];
_name = format ["Repair_%1", _x];
// Prepare first part of the string from stringtable
_text = LSTRING(Hit);
@ -117,7 +118,7 @@ _hitPointsAddedAmount = [];
// Use already added hitpoint if one found above and numerize
if (_hitPointFoundIndex != -1) exitWith {
_text = (_hitPointsAddedNames select _hitPointFoundIndex) + " " + str(_hitPointsAddedAmount select _hitPointFoundIndex);
_text = localize (_hitPointsAddedStrings select _hitPointFoundIndex) + " " + str(_hitPointsAddedAmount select _hitPointFoundIndex);
_hitPointsAddedAmount set [_hitPointFoundIndex, (_hitPointsAddedAmount select _hitPointFoundIndex) + 1]; // Set amount
TRACE_2("Same hitpoint found",_toFind,_hitPointsAddedNames);
};
@ -145,7 +146,6 @@ _hitPointsAddedAmount = [];
};
_icon = "A3\ui_f\data\igui\cfg\actions\repair_ca.paa";
_selection = "";
_condition = {[_this select 1, _this select 0, _this select 2 select 0, _this select 2 select 1] call DFUNC(canRepair)};