diff options
author | bjarni <bjarni@openttd.org> | 2006-10-04 12:01:59 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-10-04 12:01:59 +0000 |
commit | f8f0bd4943cc5c6ccdcf4f9fe8dc4b03c64f6f3f (patch) | |
tree | de1248467189ac58bfefca72dc98668d05a651bf /road_cmd.c | |
parent | 5bb5da02ad2f1a02462aa1d39777ec5d1d897266 (diff) | |
download | openttd-f8f0bd4943cc5c6ccdcf4f9fe8dc4b03c64f6f3f.tar.xz |
(svn r6637) -Codechange: merged all (vehicle type)EnterDepot into VehicleEnterDepot()
This revealed duplicated code like aircraft lists got invalidated twice
Moved invalidation of the vehicle detail window to VehicleServiceInDepot() as it should always be updated when serviced
Diffstat (limited to 'road_cmd.c')
-rw-r--r-- | road_cmd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/road_cmd.c b/road_cmd.c index bcf57f94b..999c24bf7 100644 --- a/road_cmd.c +++ b/road_cmd.c @@ -22,8 +22,6 @@ #include "yapf/yapf.h" #include "depot.h" -void RoadVehEnterDepot(Vehicle *v); - static uint CountRoadBits(RoadBits r) { @@ -1057,7 +1055,7 @@ static uint32 VehicleEnter_Road(Vehicle *v, TileIndex tile, int x, int y) if (v->type == VEH_Road && v->u.road.frame == 11 && _roadveh_enter_depot_unk0[GetRoadDepotDirection(tile)] == v->u.road.state) { - RoadVehEnterDepot(v); + VehicleEnterDepot(v); return 4; } break; |