summaryrefslogtreecommitdiff
path: root/road_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-04-25 07:32:33 +0000
committertron <tron@openttd.org>2006-04-25 07:32:33 +0000
commit18ad0ae50ee5cc57c571677de1a4e458d2d9de08 (patch)
treec52854038a7463251f059ce8699ab9ab6a257684 /road_cmd.c
parent288f4eed6577de01c9dafeee3dd2e803030da9fb (diff)
downloadopenttd-18ad0ae50ee5cc57c571677de1a4e458d2d9de08.tar.xz
(svn r4572) Remove vehicle_leave_tile_proc
There's exactly one implemented function (unbarring a level crossing) and one place where it can be triggered (a train leaves a level crossing) It's a bit overkill, so just handle this one case where it can happen
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/road_cmd.c b/road_cmd.c
index b94d58d3e..aa1be9514 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -1049,13 +1049,6 @@ static uint32 VehicleEnter_Road(Vehicle *v, TileIndex tile, int x, int y)
return 0;
}
-static void VehicleLeave_Road(Vehicle *v, TileIndex tile, int x, int y)
-{
- if (IsLevelCrossing(tile) && v->type == VEH_Train && v->next == NULL) {
- UnbarCrossing(tile);
- MarkTileDirtyByTile(tile);
- }
-}
static void ChangeTileOwner_Road(TileIndex tile, PlayerID old_player, PlayerID new_player)
{
@@ -1103,6 +1096,5 @@ const TileTypeProcs _tile_type_road_procs = {
ChangeTileOwner_Road, /* change_tile_owner_clear */
NULL, /* get_produced_cargo_proc */
VehicleEnter_Road, /* vehicle_enter_tile_proc */
- VehicleLeave_Road, /* vehicle_leave_tile_proc */
GetSlopeTileh_Road, /* get_slope_tileh_proc */
};