lazy evaluation - thx to Senfo

This commit is contained in:
He-Man 2018-06-12 21:38:24 +02:00
parent 1e64f6702a
commit f2add15ed9

View File

@ -364,7 +364,7 @@ if !(_playerTempKey isEqualTo "EPOCH_playerTemp") then {
}; };
// Check for PlayerMarker and Update or Remove it // Check for PlayerMarker and Update or Remove it
if (_PlayerMarkerEnabled && EPOCH_PlayerMarkerOn && 'ItemGPS' in (assignedItems player)) then { if (_PlayerMarkerEnabled && EPOCH_PlayerMarkerOn && {'ItemGPS' in (assignedItems player)}) then {
if (_PlayerMarkerName in allMapMarkers) then { if (_PlayerMarkerName in allMapMarkers) then {
{ {
(_x select 0) setMarkerPosLocal (position player); (_x select 0) setMarkerPosLocal (position player);