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:
parent
18a5f6bfa9
commit
3344181a47
6 changed files with 18 additions and 23 deletions
3
map.cpp
3
map.cpp
|
@ -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--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue