Skip to content

Commit

Permalink
Common - Fix debug macros in CBA_fnc_switchPlayer (#1566)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Jun 24, 2023
1 parent 4809ef8 commit 2029124
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/common/fnc_switchPlayer.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ _dummyUnit = (_ar select 4) createUnit [_type, [0, 0, 0], [], 0, "NONE"]; // Joi
if (isNull _dummyUnit) exitWith { hint "Sorry, something went wrong, dummyUnit is null" };
[_oldUnit] join _dummyGroup;

LOG(format["1.Dummy created, State saved and put oldUnit in new group: %1", _dummyGroup]);
LOG_1("1.Dummy created, State saved and put oldUnit in new group: %1", _dummyGroup);

private _newUnit = _dummyGroup createUnit [_type, _ar select 5, [], 0, "NONE"];

if (isNull _newUnit) exitWith { hint "Sorry, something went wrong, newUnit is null" };

LOG(format["2.New unit created, local: %1", local _newUnit]);
LOG_1("2.New unit created, local: %1", local _newUnit);
sleep 1;

addSwitchableUnit _newUnit;
Expand All @@ -58,7 +58,7 @@ selectPlayer _newUnit;
_newUnit setRank (_ar select 2);
_newUnit addScore (_ar select 3);

LOG(format["3.State transfered, switched player control to new unit, local: %1", local _newUnit]);
LOG_1("3.State transfered, switched player control to new unit, local: %1", local _newUnit);
sleep 1;
if (_ar select 7 != "") then
{
Expand Down

0 comments on commit 2029124

Please sign in to comment.