Skip to content

Commit

Permalink
Merge pull request acemod#6703 from acemod/fix-moving-marker-synch
Browse files Browse the repository at this point in the history
fix moved markers not synched
  • Loading branch information
commy2 authored Nov 25, 2018
2 parents a357675 + d0bbc11 commit a89dfcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/markers/functions/fnc_movePFH.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ if (isNull _ctrlMap || !GVAR(moving)) exitWith {
(_this select 1) call CBA_fnc_removePerFrameHandler;

private _finalPos = getMarkerPos _marker;
private _overrule = [QGVAR(markerMoveEnded), [ACE_player, _marker, _originalPos, _finalPos]] call CBA_fnc_localEvent;

if !([QGVAR(markerMoveEnded), [ACE_player, _marker, _originalPos, _finalPos]] call CBA_fnc_localEvent) then {
if (!isNil "_overrule" && {_overrule isEqualTo true}) then {
_marker setMarkerPosLocal _originalPos;
} else {
[QGVAR(setMarkerPosLocal), [_marker, _finalPos]] call CBA_fnc_globalEvent;
Expand Down

0 comments on commit a89dfcc

Please sign in to comment.