Turned on all the warnings I could handle and made them into errors then fixed them all. Worldbuilder needs a refactor in random_path.

This commit is contained in:
Zed A. Shaw 2025-01-10 15:22:37 -05:00
parent f3f875ee80
commit 128fc4f540
19 changed files with 85 additions and 85 deletions

View file

@ -173,11 +173,11 @@ bool Map::INVARIANT() {
for(auto room : $rooms) {
check(int(room.x) >= 0 && int(room.y) >= 0,
format("room depth={} has invalid position {},{}",
room.depth, room.x, room.y));
format("room invalid position {},{}",
room.x, room.y));
check(int(room.width) > 0 && int(room.height) > 0,
format("room depth={} has invalid dims {},{}",
room.depth, room.width, room.height));
format("room has invalid dims {},{}",
room.width, room.height));
}
return true;