src/main_gui.cpp
changeset 7353 716c6dd9322a
parent 7343 7a44e07734c7
child 7394 75d35728b8b1
equal deleted inserted replaced
7352:e2e8432018f6 7353:716c6dd9322a
    28 #include "network/network.h"
    28 #include "network/network.h"
    29 #include "signs.h"
    29 #include "signs.h"
    30 #include "waypoint.h"
    30 #include "waypoint.h"
    31 #include "variables.h"
    31 #include "variables.h"
    32 #include "train.h"
    32 #include "train.h"
       
    33 #include "roadveh.h"
    33 #include "unmovable_map.h"
    34 #include "unmovable_map.h"
    34 #include "string.h"
    35 #include "string.h"
    35 #include "screenshot.h"
    36 #include "screenshot.h"
    36 #include "genworld.h"
    37 #include "genworld.h"
    37 #include "settings.h"
    38 #include "settings.h"
   847 {
   848 {
   848 	const Vehicle *v;
   849 	const Vehicle *v;
   849 	int dis = -1;
   850 	int dis = -1;
   850 
   851 
   851 	FOR_ALL_VEHICLES(v) {
   852 	FOR_ALL_VEHICLES(v) {
   852 		if (v->type == VEH_ROAD) CLRBIT(dis, v->owner);
   853 		if (v->type == VEH_ROAD && IsRoadVehFront(v)) CLRBIT(dis, v->owner);
   853 	}
   854 	}
   854 	PopupMainPlayerToolbMenu(w, 332, 14, dis);
   855 	PopupMainPlayerToolbMenu(w, 332, 14, dis);
   855 }
   856 }
   856 
   857 
   857 static void ToolbarShipClick(Window *w)
   858 static void ToolbarShipClick(Window *w)