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

make taskPatrol accept Pos2D again #670

Merged
merged 1 commit into from
May 7, 2017
Merged

Conversation

commy2
Copy link
Contributor

@commy2 commy2 commented May 7, 2017

When merged this pull request will:

The function accepted Pos2D at some point, but it was restricted to 3D in this PR: https://github.com/CBATeam/CBA_A3/pull/572/files

Pos2D works fine, because the alternate syntax getPos in taskPatrol accepts Pos2D (and ignores z anyway in Pos3D).

Test:

[this, getPosASL leader this select [0, 2], 50] call CBA_fnc_taskPatrol;
  • works fine after this PR
  • master:
 8:52:07 Error in expression <
... (edited out whitespace)
params [
["_group",grpNull,[grpNull,objN>
 8:52:07   Error position: <params [
["_group",grpNull,[grpNull,objN>
 8:52:07   Error 2 elements provided, 3 expected
 8:52:07 File \x\cba\addons\ai\fnc_taskPatrol.sqf [CBA_fnc_taskPatrol], line 1752

I have no idea why the line number is so wrong in the error.

@commy2 commy2 added the Bug Fix label May 7, 2017
@commy2 commy2 added this to the 3.4 milestone May 7, 2017
@Killswitch00 Killswitch00 merged commit c4a9808 into master May 7, 2017
@commy2 commy2 deleted the taskPatrol-position-2d branch May 7, 2017 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants