Fix house placing picking wrong town when placing outside town enabled

This commit is contained in:
Jonathan G Rennison
2021-06-30 17:14:05 +01:00
parent 1ef18caa9a
commit 232cfee8b5

View File

@@ -1966,7 +1966,7 @@ static void PlaceProc_House(TileIndex tile)
uint dist = DistanceSquare(tile, t->xy); uint dist = DistanceSquare(tile, t->xy);
if (dist >= best_dist) continue; if (dist >= best_dist) continue;
best_dist = dist; best_dist = dist;
best_zone = town_zone; if (town_zone != HZB_END) best_zone = town_zone;
towns.clear(); towns.clear();
} }
towns.push_back(t->index); towns.push_back(t->index);