summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-10-30 17:17:54 +0000
committerfrosch <frosch@openttd.org>2015-10-30 17:17:54 +0000
commitab7ebdcfd941d0f153fa54ce998cfe86beb8fbc6 (patch)
treec819e478558786ff796cfff7e197225a22c55f92
parent05ed2001d4749b0ad3d05948fe927576af4cdec4 (diff)
downloadopenttd-ab7ebdcfd941d0f153fa54ce998cfe86beb8fbc6.tar.xz
(svn r27423) -Fix: When towns expanded single-bit roadtiles using a grid-layout, they used the layout position of the neighbouring tile.
-rw-r--r--src/town_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index ee2828ad7..7479892c2 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -1247,8 +1247,8 @@ static void GrowTownInTile(TileIndex *tile_ptr, RoadBits cur_rb, DiagDirection t
/* FALL THROUGH */
case TL_2X2_GRID:
- rcmd = GetTownRoadGridElement(t1, house_tile, target_dir);
- allow_house = (rcmd == ROAD_NONE);
+ rcmd = GetTownRoadGridElement(t1, tile, target_dir);
+ allow_house = (rcmd & DiagDirToRoadBits(target_dir)) == ROAD_NONE;
break;
case TL_BETTER_ROADS: // Use original afterwards!