From 10c11d51eaa5124539c35eda48c13c75d03c7aa1 Mon Sep 17 00:00:00 2001 From: vbawol Date: Tue, 5 Feb 2013 09:32:17 -0600 Subject: [PATCH] 0.921 + Corrected percent sign formatting for repair and salvage menus --- dayz_code/actions/repair_vehicle.sqf | 2 +- dayz_code/actions/salvage_vehicle.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dayz_code/actions/repair_vehicle.sqf b/dayz_code/actions/repair_vehicle.sqf index 5c200d7e4..dac9649fd 100644 --- a/dayz_code/actions/repair_vehicle.sqf +++ b/dayz_code/actions/repair_vehicle.sqf @@ -51,7 +51,7 @@ _hitpoints = _vehicle call vehicle_getHitpoints; if (_damage >= 0.9) then {_color = "color='#ff0000'";}; //red _percent = round(_damage*100); - _string = format["Repair%1 (%3%)",_cmpt,_color,_percent]; //Repair - Part + _string = format["Repair%1 (%3 %4)",_cmpt,_color,_percent,"%"]; //Repair - Part _handle = dayz_myCursorTarget addAction [_string, "\z\addons\dayz_code\actions\repair.sqf",[_vehicle,_part,_x], 0, false, true, "",""]; s_player_repairActions set [count s_player_repairActions,_handle]; }; diff --git a/dayz_code/actions/salvage_vehicle.sqf b/dayz_code/actions/salvage_vehicle.sqf index 0571fd26c..a25ec0c74 100644 --- a/dayz_code/actions/salvage_vehicle.sqf +++ b/dayz_code/actions/salvage_vehicle.sqf @@ -53,7 +53,7 @@ _hitpoints = _vehicle call vehicle_getHitpoints; if (_damage >= 0.9) then {_color = "color='#ff0000'";}; //red _percent = round(_damage*100); - _string = format["Remove%1 (%3%)",_cmpt,_color,_percent]; //Remove - Part + _string = format["Remove%1 (%3 %4)",_cmpt,_color,_percent,"%"]; //Remove - Part _handle = dayz_myCursorTarget addAction [_string, "\z\addons\dayz_code\actions\salvage.sqf",[_vehicle,_part,_x], 0, false, true, "",""]; s_player_repairActions set [count s_player_repairActions,_handle]; };