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

summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-08-21 17:23:14 +1000
committerGitHub <noreply@github.com>2024-08-21 17:23:14 +1000
commit483908abef0b9af2bc3494ec50bfe12be8f505c5 (patch)
treea32c49794d3a80e7fad073f341d642d97de7f385 /source
parentb2f8ac594a4b43ee5de56895bc11e330beb7d51b (diff)
parent25386deef4eeee2f31e81da5fa2c026cd03ddba1 (diff)
Merge pull request #100 from OpenStarbound/SilverSokolova-patch-1
Elaborate on dungeon air vs ground error message
Diffstat (limited to 'source')
-rw-r--r--source/game/StarDungeonGenerator.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/source/game/StarDungeonGenerator.cpp b/source/game/StarDungeonGenerator.cpp
index 96285df..8b2c9c2 100644
--- a/source/game/StarDungeonGenerator.cpp
+++ b/source/game/StarDungeonGenerator.cpp
@@ -654,12 +654,10 @@ 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: "
- + toString(air.y())
- + " Pixels: highest ground:"
- + toString(ground)
- + " lowest air:"
- + toString(air));
+ throw DungeonException::format(
+ "Invalid ground vs air contraint! Ground {} can't be above air {}"
+ " (try moving your 'require there be air here' anchors above any other 'require there be (something) here' anchors.)",
+ ground, air);
return air.y();
}