From 3af91e15729e59f5eb457fb19ac3dba360e42053 Mon Sep 17 00:00:00 2001 From: 20k Date: Fri, 13 Jan 2023 11:48:07 +0000 Subject: [PATCH] update fortress reader for structures change --- plugins/remotefortressreader/building_reader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/remotefortressreader/building_reader.cpp b/plugins/remotefortressreader/building_reader.cpp index e1f29e358..7cc715147 100644 --- a/plugins/remotefortressreader/building_reader.cpp +++ b/plugins/remotefortressreader/building_reader.cpp @@ -619,13 +619,13 @@ void CopyBuilding(int buildingIndex, RemoteFortressReader::BuildingInstance * re continue; if (zone->type != df::civzone_type::ArcheryRange) continue; - if(zone->dir_x < 0) + if(zone->zone_settings.archery.dir_x < 0) remote_build->set_direction(EAST); - else if(zone->dir_x > 0) + else if(zone->zone_settings.archery.dir_x > 0) remote_build->set_direction(WEST); - else if (zone->dir_y < 0) + else if (zone->zone_settings.archery.dir_y < 0) remote_build->set_direction(SOUTH); - else if (zone->dir_y > 0) + else if (zone->zone_settings.archery.dir_y > 0) remote_build->set_direction(NORTH); break; }