Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common - Fix debug macros in CBA_fnc_switchPlayer #1566

Merged
merged 1 commit into from
Jun 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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