Use formatting for that exception msg
This commit is contained in:
parent
d9ca18198e
commit
25386deef4
@ -654,13 +654,10 @@ namespace Dungeon {
|
|||||||
});
|
});
|
||||||
ground[1] = max(ground[1], liquid[1]);
|
ground[1] = max(ground[1], liquid[1]);
|
||||||
if (air.y() < ground.y())
|
if (air.y() < ground.y())
|
||||||
throw DungeonException("Invalid ground vs air constraint. Ground at: " + toString(ground.y()) + ". Air at: "
|
throw DungeonException::format(
|
||||||
+ toString(air.y())
|
"Invalid ground vs air contraint! Ground {} can't be above air {}"
|
||||||
+ ". Pixels: highest ground:"
|
" (try moving your 'require there be air here' anchors above any other 'require there be (something) here' anchors.)",
|
||||||
+ toString(ground)
|
ground, 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();
|
return air.y();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user