diff options
author | matthijs <matthijs@openttd.org> | 2005-05-02 23:59:11 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2005-05-02 23:59:11 +0000 |
commit | 6eb094c72622b39bceff8293c3446e57d21c62f0 (patch) | |
tree | cad8daa1ee5542d4e8fefcbf2e2825e3f35fdb47 /order_gui.c | |
parent | 2ab5eee78b495ec73049c8446a0ed37ab4ff0920 (diff) | |
download | openttd-6eb094c72622b39bceff8293c3446e57d21c62f0.tar.xz |
(svn r2256) - Fix: Trains cannot find a depot when they are in a tunnel. (glx)
- Add: GetVehicleTrackdir() helper function.
- Codechange: Moved SortStruct from vehicle_gui.h to ttd.h, so the dependency from vehicle.h on vehicle_gui.h could be removed.
- Codechange: Typedeffed the VehicleTypes struct so it can be used as the type for Vehicle.type instead of "byte".
- Codechange: Removed prototype for VehicleSorter(), which had no implementation anymore and was never called.
Diffstat (limited to 'order_gui.c')
-rw-r--r-- | order_gui.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/order_gui.c b/order_gui.c index 0a92caa84..9ec762475 100644 --- a/order_gui.c +++ b/order_gui.c @@ -118,6 +118,8 @@ static void DrawOrdersWindow(Window *w) case VEH_Train: s = STR_880E_GO_TO_TRAIN_DEPOT; break; case VEH_Road: s = STR_9038_GO_TO_ROADVEH_DEPOT; break; case VEH_Ship: s = STR_GO_TO_SHIP_DEPOT; break; + default: + break; } } if (v->type == VEH_Train && order->flags & OF_NON_STOP) |