From 91e7e12464bae4f0268868445318071a9a4312a6 Mon Sep 17 00:00:00 2001 From: lethosor Date: Tue, 7 Sep 2021 01:17:38 -0400 Subject: [PATCH] RemoteFortressReader: fix likely copy-paste error between width/height --- plugins/remotefortressreader/dwarf_control.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/remotefortressreader/dwarf_control.cpp b/plugins/remotefortressreader/dwarf_control.cpp index fda7483c1..3a5933464 100644 --- a/plugins/remotefortressreader/dwarf_control.cpp +++ b/plugins/remotefortressreader/dwarf_control.cpp @@ -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;