update fortress reader for structures change

develop
20k 2023-01-13 11:48:07 +00:00
parent f6372b97d1
commit 3af91e1572
1 changed files with 4 additions and 4 deletions

@ -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;
}