equal
deleted
inserted
replaced
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) |