RemoteFortressReader: fix likely copy-paste error between width/height

develop
lethosor 2021-09-07 01:17:38 -04:00
parent e7754ea890
commit 91e7e12464
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 3 additions and 2 deletions

@ -72,9 +72,10 @@ void GetBuildingSize(
rad_x_high = world->building_width / 2;
else
rad_x_high = (world->building_width / 2) - 1;
bool heightOdd = world->building_width % 2;
bool heightOdd = world->building_height % 2;
rad_y_low = world->building_height / 2;
if (widthOdd)
if (heightOdd)
rad_y_high = world->building_height / 2;
else
rad_y_high = (world->building_height / 2) - 1;