From 467e4b82bfb6ceb2197a73372d9e417b8d9ff59c Mon Sep 17 00:00:00 2001 From: bjarni Date: Wed, 19 Jan 2005 19:15:03 +0000 Subject: (svn r1568) made an enum of train subtypes to make the code more readable --- main_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main_gui.c') 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); } -- cgit v1.2.3-54-g00ecf