main_gui.c
changeset 1067 a083a6dd1419
parent 1044 9b73df700a7c
child 1070 bef634a62323
equal deleted inserted replaced
1066:aad3c6ad147f 1067:a083a6dd1419
   808 static void ToolbarTrainClick(Window *w)
   808 static void ToolbarTrainClick(Window *w)
   809 {
   809 {
   810 	Vehicle *v;
   810 	Vehicle *v;
   811 	int dis = -1;
   811 	int dis = -1;
   812 	FOR_ALL_VEHICLES(v)
   812 	FOR_ALL_VEHICLES(v)
   813 		if (v->type == VEH_Train && v->subtype == 0) CLRBIT(dis, v->owner);
   813 		if (v->type == VEH_Train && v->subtype == TS_Front_Engine) CLRBIT(dis, v->owner);
   814 	PopupMainPlayerToolbMenu(w, 310, 13, dis);
   814 	PopupMainPlayerToolbMenu(w, 310, 13, dis);
   815 }
   815 }
   816 
   816 
   817 static void ToolbarRoadClick(Window *w)
   817 static void ToolbarRoadClick(Window *w)
   818 {
   818 {