Fix missing room info on sent buildings.

develop
Japa Illo 2017-06-20 11:06:37 +05:30
parent 96f9faea28
commit 48f5fd7a39
1 changed files with 1 additions and 1 deletions

@ -315,7 +315,7 @@ void CopyBuilding(int buildingIndex, RemoteFortressReader::BuildingInstance * re
remote_build->set_building_flags(local_build->flags.whole); remote_build->set_building_flags(local_build->flags.whole);
remote_build->set_is_room(local_build->is_room); remote_build->set_is_room(local_build->is_room);
if (local_build->is_room || local_build->getType() == df::enums::building_type::Civzone || local_build->getType() == df::enums::building_type::Stockpile) if (local_build->room.width > 0 && local_build->room.height > 0)
{ {
auto room = remote_build->mutable_room(); auto room = remote_build->mutable_room();
room->set_pos_x(local_build->room.x); room->set_pos_x(local_build->room.x);