1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-02-21 18:20:47 +01:00

Unify the lights display logic between ENC ad IMG

This commit is contained in:
Martin Tůma 2025-02-12 01:55:02 +01:00
parent 398ef2c4f5
commit 59be4aaf1a
2 changed files with 3 additions and 2 deletions

View File

@ -277,7 +277,7 @@ void RasterTile::processPoints(QList<MapData::Point> &points,
double range = attr.value(VALNMR).toDouble(); double range = attr.value(VALNMR).toDouble();
if (attr.contains(SECTR1) if (attr.contains(SECTR1)
|| (range >= 6 && !(point.type() & 0xFFFF))) { || (range > 6 && !(point.type() & 0xFFFF))) {
sectorLights.append(SectorLight(point.pos(), color, sectorLights.append(SectorLight(point.pos(), color,
attr.value(LITVIS).toUInt(), range, attr.value(LITVIS).toUInt(), range,
attr.value(SECTR1).toDouble(), attr.value(SECTR2).toDouble())); attr.value(SECTR1).toDouble(), attr.value(SECTR2).toDouble()));

View File

@ -23,7 +23,8 @@ public:
}; };
Lights() : color(None), range(0) {} Lights() : color(None), range(0) {}
bool isSectorLight() const {return ((color && range) || !sectors.isEmpty());} bool isSectorLight() const
{return ((color && range > 6) || !sectors.isEmpty());}
Color color; Color color;
quint32 range; quint32 range;