town_cmd.c
changeset 466 1e74865c03bf
parent 465 21f9985e12d1
child 468 3a36baf27955
--- 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.