From c0a9f28c07e43238d2db3b4227aa570b2c476438 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Thu, 27 Feb 2014 09:34:57 -0600 Subject: [PATCH] comment out more debug --- SQF/dayz_code/actions/player_craftItem.sqf | 2 +- SQF/dayz_code/actions/trade_items.sqf | 2 +- SQF/dayz_code/compile/epoch_returnChange.sqf | 28 ++++++++++---------- SQF/dayz_code/init/compiles.sqf | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/SQF/dayz_code/actions/player_craftItem.sqf b/SQF/dayz_code/actions/player_craftItem.sqf index 1d30836c9..382f247a9 100644 --- a/SQF/dayz_code/actions/player_craftItem.sqf +++ b/SQF/dayz_code/actions/player_craftItem.sqf @@ -237,7 +237,7 @@ if (_canDo) then { }; - diag_log format["Checking for water level: %1", _waterLevel]; + // diag_log format["Checking for water level: %1", _waterLevel]; for "_x" from 1 to _countOut do { player addMagazine _itemOut; diff --git a/SQF/dayz_code/actions/trade_items.sqf b/SQF/dayz_code/actions/trade_items.sqf index 5ee78c096..1ed9ae43d 100644 --- a/SQF/dayz_code/actions/trade_items.sqf +++ b/SQF/dayz_code/actions/trade_items.sqf @@ -95,7 +95,7 @@ while {r_autoTrade} do { }; }; - diag_log format["DEBUG TRADER DONE?: %1", _canAfford]; + //diag_log format["DEBUG TRADER DONE?: %1", _canAfford]; if (_canAfford) then { diff --git a/SQF/dayz_code/compile/epoch_returnChange.sqf b/SQF/dayz_code/compile/epoch_returnChange.sqf index 5f3bf3299..91b63f835 100644 --- a/SQF/dayz_code/compile/epoch_returnChange.sqf +++ b/SQF/dayz_code/compile/epoch_returnChange.sqf @@ -6,12 +6,12 @@ _canAfford = false; _buyOrSell = (_this select 1); -diag_log format["DEBUG TRADER INPUT: %1", (_this select 0)]; +//diag_log format["DEBUG TRADER INPUT: %1", (_this select 0)]; // buying in currency _trade_total = (_this select 0) call epoch_itemCost; -diag_log format["DEBUG TRADER INPUT TOTAL: %1", _trade_total]; +//diag_log format["DEBUG TRADER INPUT TOTAL: %1", _trade_total]; _total_currency_dry = call epoch_totalCurrency; @@ -24,7 +24,7 @@ if (_buyOrSell == 0) then { _return_change_dry = _total_currency_dry + _trade_total; }; -diag_log format["DEBUG TRADER DRY: %1", _return_change_dry]; +//diag_log format["DEBUG TRADER DRY: %1", _return_change_dry]; if (_return_change_dry >= 0) then { _canAfford = true; @@ -45,7 +45,7 @@ if (_canAfford) then { } forEach (magazines player); - diag_log format["DEBUG TRADER INPUT CURRENCY TOTAL: %1", _total_currency]; + //diag_log format["DEBUG TRADER INPUT CURRENCY TOTAL: %1", _total_currency]; _return_change = 0; if (_buyOrSell == 0) then { @@ -56,7 +56,7 @@ if (_canAfford) then { _return_change = _total_currency + _trade_total; }; - diag_log format["DEBUG TRADER CHANGE: %1", _return_change]; + //diag_log format["DEBUG TRADER CHANGE: %1", _return_change]; if (_return_change >= 0) then { @@ -85,43 +85,43 @@ if (_canAfford) then { if (_briefcase_100oz > 0) then { for "_x" from 1 to _briefcase_100oz do { player addMagazine "ItemBriefcase100oz"; - diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _briefcase_100oz, "ItemBriefcase100oz"]; + //diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _briefcase_100oz, "ItemBriefcase100oz"]; }; }; if (_gold_10oz > 0) then { if (_gold_10oz == 1) then { player addMagazine "ItemGoldBar10oz"; - diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _gold_10oz, "ItemGoldBar10z"]; + //diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _gold_10oz, "ItemGoldBar10z"]; } else { player addMagazine format["ItemBriefcase%1oz",floor(_gold_10oz*10)]; - diag_log format["DEBUG TRADER CHANG MADE: ItemBriefcase%1oz", floor(_gold_10oz*10)]; + //diag_log format["DEBUG TRADER CHANG MADE: ItemBriefcase%1oz", floor(_gold_10oz*10)]; }; }; if (_gold_1oz > 0) then { if (_gold_1oz == 1) then { player addMagazine "ItemGoldBar"; - diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _gold_1oz, "ItemGoldBar"]; + //diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _gold_1oz, "ItemGoldBar"]; } else { player addMagazine format["ItemGoldBar%1oz",_gold_1oz]; - diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _gold_1oz, "ItemGoldBar"]; + //diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _gold_1oz, "ItemGoldBar"]; }; }; if (_silver_10oz > 0) then { if (_silver_10oz == 1) then { player addMagazine "ItemSilverBar10oz"; - diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _silver_10oz, "ItemSilverBar10oz"]; + //diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _silver_10oz, "ItemSilverBar10oz"]; } else { player addMagazine format["ItemBriefcaseS%1oz",floor(_silver_10oz*10)]; - diag_log format["DEBUG TRADER CHANG MADE: ItemBriefcaseS%1oz", floor(_silver_10oz*10)]; + //diag_log format["DEBUG TRADER CHANG MADE: ItemBriefcaseS%1oz", floor(_silver_10oz*10)]; }; }; if (_silver_1oz > 0) then { if (_silver_1oz == 1) then { player addMagazine "ItemSilverBar"; - diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _silver_1oz, "ItemSilverBar"]; + //diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _silver_1oz, "ItemSilverBar"]; } else { player addMagazine format["ItemSilverBar%1oz",_silver_1oz]; - diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _silver_1oz, "ItemSilverBar"]; + //diag_log format["DEBUG TRADER CHANG MADE: %1 x %2", _silver_1oz, "ItemSilverBar"]; }; }; _successful = true; diff --git a/SQF/dayz_code/init/compiles.sqf b/SQF/dayz_code/init/compiles.sqf index b751fcea9..5502680d5 100644 --- a/SQF/dayz_code/init/compiles.sqf +++ b/SQF/dayz_code/init/compiles.sqf @@ -171,7 +171,7 @@ if (!isDedicated) then { }; } forEach _this; - diag_log format["DEBUG TRADER ITEMCOST: %1", _this]; + //diag_log format["DEBUG TRADER ITEMCOST: %1", _this]; _trade_total };