Skip to content

Commit

Permalink
Merge pull request #78 from gruppe-adler/fix-39
Browse files Browse the repository at this point in the history
fix #39 once and for all
  • Loading branch information
Fusselwurm authored Jul 17, 2020
2 parents 54327a0 + 7d8aff8 commit ca66179
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions addons/voyage/functions/fnc_sm_business_state_voyage_loop.sqf
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#include "..\script_component.hpp"

private _group = group _this;
private _wpidx = currentWaypoint _group;
private _wps = waypoints _group;
private _wppos = waypointPosition (_wps select _wpidx);
private _wppos = waypointPosition (_wps select (currentWaypoint _group));

[_this, format ["traveling to waypoint %1, %2 (%3m left)", _wpidx, _wppos, _this distance _wppos]] call EFUNC(legacy,setCurrentlyThinking);
[_this, format ["traveling to waypoint %1, %2 (%3m left)", currentWaypoint _group, _wppos, _this distance _wppos]] call EFUNC(legacy,setCurrentlyThinking);

0 comments on commit ca66179

Please sign in to comment.