From ac5f4cafeb97152dedeaa28650e7d12192945901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 17 Nov 2022 13:26:45 +0100 Subject: [PATCH] Code cleanup --- src/map/ENC/objects.h | 1 + src/map/ENC/style.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/map/ENC/objects.h b/src/map/ENC/objects.h index c296a652..a740a8ac 100644 --- a/src/map/ENC/objects.h +++ b/src/map/ENC/objects.h @@ -24,6 +24,7 @@ #define CANALS 23 #define COALNE 30 #define DAMCON 38 +#define DWRTPT 41 #define DEPARE 42 #define DEPCNT 43 #define DRGARE 46 diff --git a/src/map/ENC/style.cpp b/src/map/ENC/style.cpp index cefc9174..9bad2e34 100644 --- a/src/map/ENC/style.cpp +++ b/src/map/ENC/style.cpp @@ -65,7 +65,7 @@ void Style::defaultPolygonStyle() 1)); _polygons[TYPE(FLODOC)] = Polygon(QBrush("#333333"), QPen(QColor("#000000"), 1)); - _polygons[TYPE(41)] = Polygon(QImage(":/marine/dw-route-line")); + _polygons[TYPE(DWRTPT)] = Polygon(QImage(":/marine/dw-route-line")); _drawOrder << TYPE(M_COVR) << TYPE(LNDARE) << SUBTYPE(DEPARE, 0) @@ -76,8 +76,8 @@ void Style::defaultPolygonStyle() << TYPE(BUISGL) << TYPE(AIRARE) << TYPE(BRIDGE) << TYPE(SLCONS) << TYPE(PONTON) << TYPE(FLODOC) << TYPE(DRYDOC) << TYPE(DAMCON) << TYPE(PYLONS) << TYPE(DMPGRD) << TYPE(TSEZNE) << TYPE(OBSTRN) - << SUBTYPE(ACHARE, 1) << SUBTYPE(RESARE, 9) << SUBTYPE(RESARE, 2) - << TYPE(PRCARE) << TYPE(41); + << TYPE(DWRTPT) << SUBTYPE(ACHARE, 1) << SUBTYPE(RESARE, 9) + << SUBTYPE(RESARE, 2) << TYPE(PRCARE); } void Style::defaultLineStyle()