Fixes wrong display name when cooking

This commit is contained in:
vbawol
2013-06-19 10:09:25 -05:00
parent 005497be43
commit c06cd77ae8

View File

@@ -17,11 +17,12 @@ _cookedmeat = meatcooked;
_meatcooked = _cookedmeat select (_rawmeat find _meat);
_removed = 0;
if (_meat in magazines player) then {
_textraw = getText (configFile >> "CfgMagazines" >> _meat >> "displayName");
_text = getText (configFile >> "CfgMagazines" >> _meatcooked >> "displayName");
_qty = {_x == _meat} count magazines player;
cutText [format["Started cooking %1",_text], "PLAIN DOWN"];
cutText [format["Started cooking %1",_textraw], "PLAIN DOWN"];
player playActionNow "Medic";
@@ -70,7 +71,7 @@ _cookedmeat = meatcooked;
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
cutText [format["Canceled cooking %1",_text], "PLAIN DOWN"];
cutText [format["Canceled cooking %1",_textraw], "PLAIN DOWN"];
// player addMagazine "ItemBandage";
};