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
commit2fd3553d78d6b93fb85d97ae8e98beef5418a9c4 (patch)
tree2bf58365c54d2375ef13ac173631a7846771dc03 /order_gui.c
parente4a3d284b21a5bbd4ff5c0ad920be28cd4701e8a (diff)
downloadopenttd-2fd3553d78d6b93fb85d97ae8e98beef5418a9c4.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;
}