mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix moved markers not synched
This commit is contained in:
parent
a357675ad3
commit
7b8fbe10b2
@ -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;
|
||||
|
@ -2,8 +2,8 @@
|
||||
#define COMPONENT_BEAUTIFIED Markers
|
||||
#include "\z\ace\addons\main\script_mod.hpp"
|
||||
|
||||
// #define DEBUG_MODE_FULL
|
||||
// #define DISABLE_COMPILE_CACHE
|
||||
#define DEBUG_MODE_FULL
|
||||
#define DISABLE_COMPILE_CACHE
|
||||
// #define ENABLE_PERFORMANCE_COUNTERS
|
||||
|
||||
#ifdef DEBUG_ENABLED_MARKERS
|
||||
|
Loading…
Reference in New Issue
Block a user