(svn r696) Do not consider a road station as street when growing the town.
authorpasky
Sat, 20 Nov 2004 01:49:42 +0000
changeset 466 01f6221599a7
parent 465 64f0772071fb
child 467 6f3e282fdce4
(svn r696) Do not consider a road station as street when growing the town.
town_cmd.c
--- a/town_cmd.c	Sat Nov 20 01:08:41 2004 +0000
+++ b/town_cmd.c	Sat Nov 20 01:49:42 2004 +0000
@@ -404,6 +404,13 @@
 	TILE_ASSERT(tile);
 
 	for(;;) {
+		// Check if we didn't hit a station. That little roadstation
+		// pinkeye returns nonzero GetRoadBitsByTile(), but the road
+		// doesn't really go through it (nor can we extend it at
+		// that place).
+		if (IS_TILETYPE(tile, MP_STATION))
+			return false;
+
 		// Check if there already is a road at this point?
 		if (GetRoadBitsByTile(tile) == 0) {
 			// No, try to build one in the direction.