Cleaned up all the places I was doing push_back({constructorvar1, constructorvar2}) to use emplace_back(constructorvar1, constructorvar2) every other use should be only for actually copying.

This commit is contained in:
Zed A. Shaw 2025-01-22 07:38:49 -05:00
parent 18a5f6bfa9
commit 3344181a47
6 changed files with 18 additions and 23 deletions

View file

@ -209,9 +209,6 @@ void Map::expand() {
}
void Map::add_room(Room &room) {
// println(">>ADDING ROOM x/y={},{}; w/h={},{}; map={},{}",
// room.x, room.y, room.width, room.height, $width, $height);
room.x++;
room.y++;
room.width--;