From b9fb9eece30a73705f5bd5945753d66326676387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 19 Feb 2025 23:00:39 +0100 Subject: [PATCH] Use 10NM as the major/minor light threshold --- src/map/ENC/rastertile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map/ENC/rastertile.cpp b/src/map/ENC/rastertile.cpp index c0e57efb..d82e8019 100644 --- a/src/map/ENC/rastertile.cpp +++ b/src/map/ENC/rastertile.cpp @@ -14,6 +14,7 @@ using namespace ENC; #define TEXT_EXTENT 160 #define TSSLPT_SIZE 24 #define RANGE_FACTOR 4 +#define MAJOR_RANGE 10 static const float C1 = 0.866025f; /* sqrt(3)/2 */ static const QColor tsslptPen = QColor(0xeb, 0x49, 0xeb); @@ -277,7 +278,7 @@ void RasterTile::processPoints(QList &points, double range = attr.value(VALNMR).toDouble(); if (attr.contains(SECTR1) - || (range > 6 && !(point.type() & 0xFFFF))) { + || (range >= MAJOR_RANGE && !(point.type() & 0xFFFF))) { sectorLights.append(SectorLight(point.pos(), color, attr.value(LITVIS).toUInt(), range, attr.value(SECTR1).toDouble(), attr.value(SECTR2).toDouble()));