summaryrefslogtreecommitdiff
path: root/road_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-19 07:20:48 +0000
committertron <tron@openttd.org>2005-07-19 07:20:48 +0000
commit857a3a1ffce4ac4a150a042e45af9513d516adaf (patch)
tree038977c702ecf4dfc58741e7f2264c0c10b1464e /road_cmd.c
parent87be1312d2c727df480b6f5b0d3e37bf3887eb2d (diff)
downloadopenttd-857a3a1ffce4ac4a150a042e45af9513d516adaf.tar.xz
(svn r2634) Fix typo: IsSteepTile expects a tileh, not a TileIndex (thanks to peter1138)
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/road_cmd.c b/road_cmd.c
index 4fa262641..0ef9a1b43 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -385,7 +385,7 @@ int32 CmdBuildRoad(int x, int y, uint32 flags, uint32 p1, uint32 p2)
} 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