From aca227b5e47b252d7ec58ba281afbdfea8fb2d64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zieli=C5=84ski?= Date: Sat, 1 Apr 2023 17:07:43 +0200 Subject: [PATCH] Manually adjust the position of town - noticeable on S maps. --- lib/rmg/TownPlacer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rmg/TownPlacer.cpp b/lib/rmg/TownPlacer.cpp index c5dee4fed..57e1c7736 100644 --- a/lib/rmg/TownPlacer.cpp +++ b/lib/rmg/TownPlacer.cpp @@ -145,7 +145,7 @@ int3 TownPlacer::placeMainTown(ObjectManager & manager, CGTownInstance & town) float distance = zone.getPos().dist2dSQ(t); return 100000.f - distance; //some big number }, ObjectManager::OptimizeType::WEIGHT); - rmgObject.setPosition(position); + rmgObject.setPosition(position + int3(2, 2, 0)); //place visitable tile in the exact center of a zone manager.placeObject(rmgObject, false, true); cleanupBoundaries(rmgObject); zone.setPos(rmgObject.getVisitablePosition()); //roads lead to main town