summaryrefslogtreecommitdiff
path: root/order_gui.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-01-19 19:15:03 +0000
committerbjarni <bjarni@openttd.org>2005-01-19 19:15:03 +0000
commit467e4b82bfb6ceb2197a73372d9e417b8d9ff59c (patch)
tree2bf58365c54d2375ef13ac173631a7846771dc03 /order_gui.c
parent640985ce04a2ba44bf69b85e7fb91edd4b507b08 (diff)
downloadopenttd-467e4b82bfb6ceb2197a73372d9e417b8d9ff59c.tar.xz
(svn r1568) made an enum of train subtypes to make the code more readable
Diffstat (limited to 'order_gui.c')
-rw-r--r--order_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/order_gui.c b/order_gui.c
index 5c99bb557..0c9692929 100644
--- a/order_gui.c
+++ b/order_gui.c
@@ -271,9 +271,9 @@ static bool HandleOrderVehClick(Vehicle *v, Vehicle *u, Window *w)
if (u->type != v->type)
return false;
- if (u->type == VEH_Train && u->subtype != 0) {
+ if (u->type == VEH_Train && u->subtype != TS_Front_Engine) {
u = GetFirstVehicleInChain(u);
- if (u->subtype != 0)
+ if (u->subtype != TS_Front_Engine)
return false;
}