diff options
author | tron <tron@openttd.org> | 2006-03-12 15:04:03 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-12 15:04:03 +0000 |
commit | 0100871412ac1b48aa64a87f2d88d8276212963e (patch) | |
tree | fa4485d2814de5612a416a86e22ba7d60ce70f9f /roadveh_cmd.c | |
parent | 7a0071cc531b7c3fe03293360acec28e889a4532 (diff) | |
download | openttd-0100871412ac1b48aa64a87f2d88d8276212963e.tar.xz |
(svn r3830) Move IsTunnelTile() from tile.h to tunnel_map.h and add IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r-- | roadveh_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c index b8dc3f928..9bd462072 100644 --- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -18,6 +18,7 @@ #include "player.h" #include "sound.h" #include "depot.h" +#include "tunnel_map.h" #include "vehicle_gui.h" #include "newgrf_engine.h" @@ -1254,8 +1255,7 @@ static void RoadVehController(Vehicle *v) return; } - if (IsTileType(gp.new_tile, MP_TUNNELBRIDGE) && - GB(_m[gp.new_tile].m5, 4, 4) == 0 && + if (IsTunnelTile(gp.new_tile) && VehicleEnterTile(v, gp.new_tile, gp.x, gp.y) & 4) { //new_dir = RoadGetNewDirection(v, gp.x, gp.y) v->cur_image = GetRoadVehImage(v, v->direction); |