2015-01-11 16:42:31 +00:00
|
|
|
/*
|
2015-03-24 04:18:00 +00:00
|
|
|
* Author: esteldunedain
|
2015-01-11 16:42:31 +00:00
|
|
|
*
|
2015-01-16 23:13:26 +00:00
|
|
|
* Copy recieved markers to map
|
2015-01-11 16:42:31 +00:00
|
|
|
*
|
|
|
|
* Argument:
|
|
|
|
* 0: Array of markers to copy (Array)
|
|
|
|
*
|
|
|
|
* Return value:
|
|
|
|
* Return
|
|
|
|
*/
|
|
|
|
|
2015-01-15 21:50:48 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-01-16 23:13:26 +00:00
|
|
|
PARAMS_1(_lineMarkers);
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
_marker = _x;
|
2015-01-16 23:13:26 +00:00
|
|
|
//Add marker if we don't already have it
|
2015-01-15 21:50:48 +00:00
|
|
|
if (({(_x select 0) == (_marker select 0)} count GVAR(drawing_lineMarkers)) == 0) then {
|
2015-01-15 09:51:18 +00:00
|
|
|
_marker call FUNC(addLineMarker);
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|
|
|
|
} forEach _lineMarkers;
|