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:
parent
f3f875ee80
commit
128fc4f540
19 changed files with 85 additions and 85 deletions
8
map.cpp
8
map.cpp
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue