Merge pull request #2598 from 20k/develop

Update fortress reader for structures change
develop
Myk 2023-01-14 01:26:05 -08:00 committed by GitHub
commit 8d58347b10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

@ -619,13 +619,13 @@ void CopyBuilding(int buildingIndex, RemoteFortressReader::BuildingInstance * re
continue; continue;
if (zone->type != df::civzone_type::ArcheryRange) if (zone->type != df::civzone_type::ArcheryRange)
continue; continue;
if(zone->dir_x < 0) if(zone->zone_settings.archery.dir_x < 0)
remote_build->set_direction(EAST); 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); 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); 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); remote_build->set_direction(NORTH);
break; break;
} }