Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarDungeonGenerator.cpp
diff options
context:
space:
mode:
authorSilverSokolova <80606782+SilverSokolova@users.noreply.github.com>2024-08-21 00:21:51 -0500
committerGitHub <noreply@github.com>2024-08-21 00:21:51 -0500
commitd9ca18198eca1953bbaddb0ea199ad623a6edd91 (patch)
treebc5d2b0b2ef31a13df3eb9505a498050bdc31f9a /source/game/StarDungeonGenerator.cpp
parentb2f8ac594a4b43ee5de56895bc11e330beb7d51b (diff)
Elaborate on dungeon air vs ground error message
Diffstat (limited to 'source/game/StarDungeonGenerator.cpp')
-rw-r--r--source/game/StarDungeonGenerator.cpp9
1 files 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();
}