summaryrefslogtreecommitdiff
path: root/vehicle.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-09 18:18:21 +0000
committertron <tron@openttd.org>2004-12-09 18:18:21 +0000
commit93a4dbda4b10d8b26c575e4b16d4505ea881dae5 (patch)
tree61737620ce9f1ffcb58760a5a831d53da23627b6 /vehicle.h
parent4a818ecbb6288870fda43144fe33717dc29ca089 (diff)
downloadopenttd-93a4dbda4b10d8b26c575e4b16d4505ea881dae5.tar.xz
(svn r990) Fix a display bug in the order list:
TTD stores invalid orders different than OTTD, this resulted in empty lines in the order list. With the overhaul of the order system this got worse: no line was shown at all. Fix this by sanity checking while loading and convert the orders accordingly.
Diffstat (limited to 'vehicle.h')
-rw-r--r--vehicle.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vehicle.h b/vehicle.h
index 178a77635..b1d474d6b 100644
--- a/vehicle.h
+++ b/vehicle.h
@@ -28,6 +28,9 @@ static inline Order UnpackOrder(uint16 packed)
return order;
}
+Order UnpackOldOrder(uint16 packed);
+
+
typedef struct VehicleRail {
uint16 last_speed; // NOSAVE: only used in UI
uint16 crash_anim_pos;