From d9ca18198eca1953bbaddb0ea199ad623a6edd91 Mon Sep 17 00:00:00 2001 From: SilverSokolova <80606782+SilverSokolova@users.noreply.github.com> Date: Wed, 21 Aug 2024 00:21:51 -0500 Subject: [PATCH] Elaborate on dungeon air vs ground error message --- source/game/StarDungeonGenerator.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/game/StarDungeonGenerator.cpp b/source/game/StarDungeonGenerator.cpp index 96285df..9c40b32 100644 --- a/source/game/StarDungeonGenerator.cpp +++ b/source/game/StarDungeonGenerator.cpp @@ -654,12 +654,13 @@ namespace Dungeon { }); ground[1] = max(ground[1], liquid[1]); if (air.y() < ground.y()) - throw DungeonException("Invalid ground vs air contraint. Ground at: " + toString(ground.y()) + " Air at: " + throw DungeonException("Invalid ground vs air constraint. Ground at: " + toString(ground.y()) + ". Air at: " + toString(air.y()) - + " Pixels: highest ground:" + + ". Pixels: highest ground:" + toString(ground) - + " lowest air:" - + toString(air)); + + ", lowest air:" + + toString(air) + + ". Try moving your 'require there be air here' anchors above any other 'require there be (something) here' anchors."); return air.y(); }