diff --git a/src/map/IMG/rgnfile.cpp b/src/map/IMG/rgnfile.cpp index 6ba2a638..abe90654 100644 --- a/src/map/IMG/rgnfile.cpp +++ b/src/map/IMG/rgnfile.cpp @@ -20,8 +20,9 @@ static quint64 pointId(const QPoint &pos, quint32 type, quint32 labelPtr) uint hash = (uint)qHash(QPair((uint)qHash( QPair(pos.x(), pos.y())), labelPtr)); id = ((quint64)type)<<32 | hash; - // Make country labels precedent over city labels - if (!Style::isCountry(type)) + + // Increase rendering priorities for some special items + if (!Style::isCountry(type) && !Style::isMarina(type)) id |= 1ULL<<63; return id; diff --git a/src/map/IMG/style.h b/src/map/IMG/style.h index 3cda12e3..e222197a 100644 --- a/src/map/IMG/style.h +++ b/src/map/IMG/style.h @@ -125,6 +125,8 @@ public: {return (type >= 0x10400 && type <= 0x10401);} static bool isMarinePoint(quint32 type) {return type >= 0x10100 && type < 0x10a00;} + static bool isMarina(quint32 type) + {return type == 0x10703;} private: struct Section {