diff options
author | bjarni <bjarni@openttd.org> | 2005-01-19 19:15:03 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-01-19 19:15:03 +0000 |
commit | 467e4b82bfb6ceb2197a73372d9e417b8d9ff59c (patch) | |
tree | 2bf58365c54d2375ef13ac173631a7846771dc03 /main_gui.c | |
parent | 640985ce04a2ba44bf69b85e7fb91edd4b507b08 (diff) | |
download | openttd-467e4b82bfb6ceb2197a73372d9e417b8d9ff59c.tar.xz |
(svn r1568) made an enum of train subtypes to make the code more readable
Diffstat (limited to 'main_gui.c')
-rw-r--r-- | main_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main_gui.c b/main_gui.c index 00452e109..7fb3f0df4 100644 --- a/main_gui.c +++ b/main_gui.c @@ -810,7 +810,7 @@ static void ToolbarTrainClick(Window *w) Vehicle *v; int dis = -1; FOR_ALL_VEHICLES(v) - if (v->type == VEH_Train && v->subtype == 0) CLRBIT(dis, v->owner); + if (v->type == VEH_Train && v->subtype == TS_Front_Engine) CLRBIT(dis, v->owner); PopupMainPlayerToolbMenu(w, 310, 13, dis); } |