From b1ea3e8f02abdaf5cae5dc3d8fccf13206c96b85 Mon Sep 17 00:00:00 2001 From: Rose Date: Mon, 26 Dec 2022 17:05:06 -0800 Subject: [PATCH] Remove a few things from building_reader that haven't been updated yet. --- .../remotefortressreader/building_reader.cpp | 48 ++++++++++--------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/plugins/remotefortressreader/building_reader.cpp b/plugins/remotefortressreader/building_reader.cpp index a4300159e..5a0595eef 100644 --- a/plugins/remotefortressreader/building_reader.cpp +++ b/plugins/remotefortressreader/building_reader.cpp @@ -316,7 +316,8 @@ void CopyBuilding(int buildingIndex, RemoteFortressReader::BuildingInstance * re material->set_mat_index(local_build->mat_index); remote_build->set_building_flags(local_build->flags.whole); - remote_build->set_is_room(local_build->is_room); + //FIXME: Figure out what to replace this with. + //remote_build->set_is_room(local_build->is_room); if (local_build->room.width > 0 && local_build->room.height > 0 && local_build->room.extents != nullptr) { auto room = remote_build->mutable_room(); @@ -607,28 +608,29 @@ void CopyBuilding(int buildingIndex, RemoteFortressReader::BuildingInstance * re } case df::enums::building_type::ArcheryTarget: { - auto actual = strict_virtual_cast(local_build); - if (actual) - { - auto facing = actual->archery_direction; - switch (facing) - { - case df::building_archerytargetst::TopToBottom: - remote_build->set_direction(NORTH); - break; - case df::building_archerytargetst::BottomToTop: - remote_build->set_direction(SOUTH); - break; - case df::building_archerytargetst::LeftToRight: - remote_build->set_direction(WEST); - break; - case df::building_archerytargetst::RightToLeft: - remote_build->set_direction(EAST); - break; - default: - break; - } - } + //FIXME: Need to decode archery targets again. + //auto actual = strict_virtual_cast(local_build); + //if (actual) + //{ + // auto facing = actual->archery_direction; + // switch (facing) + // { + // case df::building_archerytargetst::TopToBottom: + // remote_build->set_direction(NORTH); + // break; + // case df::building_archerytargetst::BottomToTop: + // remote_build->set_direction(SOUTH); + // break; + // case df::building_archerytargetst::LeftToRight: + // remote_build->set_direction(WEST); + // break; + // case df::building_archerytargetst::RightToLeft: + // remote_build->set_direction(EAST); + // break; + // default: + // break; + // } + //} break; } case df::enums::building_type::Chain: