From 3ebe59859b73222d9dd1e7433b976b672ad2ba64 Mon Sep 17 00:00:00 2001 From: lethosor Date: Fri, 6 Nov 2015 20:04:32 -0500 Subject: [PATCH] box-select: Fix "tiles to fill" count --- plugins/automaterial.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/automaterial.cpp b/plugins/automaterial.cpp index 83573b9fb..60ccdd52a 100644 --- a/plugins/automaterial.cpp +++ b/plugins/automaterial.cpp @@ -466,7 +466,7 @@ static bool is_valid_building_site(building_site &site, bool orthogonal_check, b if (construction->flags.bits.top_of_wall==0) return false; } - + if (material == tiletype_material::FIRE || material == tiletype_material::POOL || material == tiletype_material::BROOK || @@ -1120,7 +1120,7 @@ struct jobutils_hook : public df::viewscreen_dwarfmodest { ++y; OutputString(COLOR_BROWN, x, y, "Construction:", true, left_margin); - OutputString(COLOR_WHITE, x, y, int_to_string(valid_building_sites.size() + 1) + " tiles to fill", true, left_margin); + OutputString(COLOR_WHITE, x, y, int_to_string(valid_building_sites.size()) + " tiles to fill", true, left_margin); } } }