(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
This commit is contained in:
tron
2006-04-25 07:32:33 +00:00
parent 288f4eed65
commit 18ad0ae50e
14 changed files with 6 additions and 32 deletions

View File

@@ -2931,6 +2931,11 @@ static void TrainController(Vehicle *v)
goto invalid_rail;
}
if (IsLevelCrossingTile(v->tile) && v->next == NULL) {
UnbarCrossing(v->tile);
MarkTileDirtyByTile(v->tile);
}
if (IsFrontEngine(v)) v->load_unload_time_rem = 0;
if (!(r&0x4)) {