# HG changeset patch # User pasky # Date 1100915382 0 # Node ID 1e74865c03bf65de510891d1ee304d59f27ca202 # Parent 21f9985e12d14f52b6b6dc9fee1bdb680b5231aa (svn r696) Do not consider a road station as street when growing the town. diff -r 21f9985e12d1 -r 1e74865c03bf 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.