Skip to content

Commit

Permalink
Common - Optimise marker global broadcast for exporting SQF (#764)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb432 authored May 5, 2024
1 parent c954c00 commit 131eeb3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions addons/common/functions/fnc_exportMissionSQF.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -408,15 +408,15 @@ if (_radius > 0) then {
if (_includeMarkers) then {
{
if (markerShape _x != "POLYLINE") then {
_outputMarkers pushBack ["_marker = createMarker [%1, %2];", str _x, markerPos [_x, true]];
_outputMarkers pushBack ["_marker setMarkerDir %1;", markerDir _x];
_outputMarkers pushBack ["_marker setMarkerType %1;", str markerType _x];
_outputMarkers pushBack ["_marker setMarkerShape %1;", str markerShape _x];
_outputMarkers pushBack ["_marker setMarkerSize %1;", markerSize _x];
_outputMarkers pushBack ["_marker setMarkerText %1;", str markerText _x];
_outputMarkers pushBack ["_marker setMarkerBrush %1;", str markerBrush _x];
_outputMarkers pushBack ["_marker setMarkerColor %1;", str markerColor _x];
_outputMarkers pushBack ["_marker setMarkerAlpha %1;", markerAlpha _x];
_outputMarkers pushBack ["_marker = createMarkerLocal [%1, %2];", str _x, markerPos [_x, true]];
_outputMarkers pushBack ["_marker setMarkerTypeLocal %1;", str markerType _x];
_outputMarkers pushBack ["_marker setMarkerShapeLocal %1;", str markerShape _x];
_outputMarkers pushBack ["_marker setMarkerDirLocal %1;", markerDir _x];
_outputMarkers pushBack ["_marker setMarkerSizeLocal %1;", markerSize _x];
_outputMarkers pushBack ["_marker setMarkerTextLocal %1;", str markerText _x];
_outputMarkers pushBack ["_marker setMarkerBrushLocal %1;", str markerBrush _x];
_outputMarkers pushBack ["_marker setMarkerColorLocal %1;", str markerColor _x];
_outputMarkers pushBack ["_marker setMarkerAlpha %1;", markerAlpha _x]; // Broadcast marker globally
_outputMarkers pushBack "";
};
} forEach allMapMarkers;
Expand Down

0 comments on commit 131eeb3

Please sign in to comment.