|
|
@ -72,9 +72,10 @@ void GetBuildingSize(
|
|
|
|
rad_x_high = world->building_width / 2;
|
|
|
|
rad_x_high = world->building_width / 2;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
rad_x_high = (world->building_width / 2) - 1;
|
|
|
|
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;
|
|
|
|
rad_y_low = world->building_height / 2;
|
|
|
|
if (widthOdd)
|
|
|
|
if (heightOdd)
|
|
|
|
rad_y_high = world->building_height / 2;
|
|
|
|
rad_y_high = world->building_height / 2;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
rad_y_high = (world->building_height / 2) - 1;
|
|
|
|
rad_y_high = (world->building_height / 2) - 1;
|
|
|
|