road_gui.c
changeset 2049 ad0d49c916d4
parent 1990 90eb49e87b90
child 2159 3b634157c3b2
--- a/road_gui.c	Wed Jul 13 09:51:01 2005 +0000
+++ b/road_gui.c	Wed Jul 13 18:04:01 2005 +0000
@@ -69,7 +69,7 @@
 	static const byte _roadbits_by_dir[4] = {2,1,8,4};
 	tile += TileOffsByDir(direction);
 	// if there is a roadpiece just outside of the station entrance, build a connecting route
-	if (IsTileType(tile, MP_STREET) && !(_map5[tile] & 0x20)) {
+	if (IsTileType(tile, MP_STREET) && !(_m[tile].m5 & 0x20)) {
 		DoCommandP(tile, _roadbits_by_dir[direction], 0, NULL, CMD_BUILD_ROAD);
 	}
 }