From b1f67be139057647a28c2d5eac65203675c18711 Mon Sep 17 00:00:00 2001 From: bart Date: Sun, 8 Nov 2026 21:57:44 +0100 Subject: [PATCH] Fix duplicate definition of struct TileRoad in gamemanager.h --- gamemanager.h | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/gamemanager.h b/gamemanager.h index 0db6f59..62343fe 100644 --- a/gamemanager.h +++ b/gamemanager.h @@ -25,11 +25,11 @@ enum class ActionMode { }; struct TileRoad { - int tileX; - int tileY; - int playerId; - QString roadTypeId; // "dirt", "stone", "rail" - unsigned char connectionMask; // 6 bits: bit e (0..5) is 1 if connected to neighbor across edge e + QString roadTypeId = "dirt"; // "dirt", "stone", "rail" + int tileX = 0; + int tileY = 0; + int playerId = 1; + unsigned char connectionMask = 0; // 6 bits: bit e (0..5) is 1 if connected to neighbor across edge e QVector3D worldPos; bool hasConnection(int edge) const { @@ -49,15 +49,6 @@ struct TileImprovement { QVector3D worldPos; }; -struct TileRoad { - QString roadTypeId = "dirt"; - int tileX = 0; - int tileY = 0; - int playerId = 1; - QVector3D worldPos; - unsigned char connectionMask = 0; // bit e (0..5) indicates connected across edge e -}; - struct FloatingText { QString text; QVector3D worldPos;