(svn r2634) Fix typo: IsSteepTile expects a tileh, not a TileIndex (thanks to peter1138)
authortron
Tue, 19 Jul 2005 07:20:48 +0000
changeset 2124 868ae25e586b
parent 2123 146517a6e3aa
child 2125 edc17858f9f6
(svn r2634) Fix typo: IsSteepTile expects a tileh, not a TileIndex (thanks to peter1138)
road_cmd.c
--- a/road_cmd.c	Tue Jul 19 06:54:13 2005 +0000
+++ b/road_cmd.c	Tue Jul 19 07:20:48 2005 +0000
@@ -385,7 +385,7 @@
 	} else if (ti.type == MP_RAILWAY) {
 		byte m5;
 
-		if (IsSteepTileh(ti.tile)) // very steep tile
+		if (IsSteepTileh(ti.tileh)) // very steep tile
 				return_cmd_error(STR_1000_LAND_SLOPED_IN_WRONG_DIRECTION);
 
 		if(!_valid_tileh_slopes_road[2][ti.tileh]) // prevent certain slopes