src/main_gui.cpp
changeset 7187 f7dc3204d457
parent 7181 f966d75af3a6
child 7226 a8650d6ecb53
equal deleted inserted replaced
7186:fe5c15ed69fd 7187:f7dc3204d457
   936 
   936 
   937 static void ToolbarBuildRoadClick(Window *w)
   937 static void ToolbarBuildRoadClick(Window *w)
   938 {
   938 {
   939 	const Player *p = GetPlayer(_local_player);
   939 	const Player *p = GetPlayer(_local_player);
   940 	/* The standard road button is *always* available */
   940 	/* The standard road button is *always* available */
   941 	Window *w2 = PopupMainToolbMenu(w, 20, STR_180A_ROAD_CONSTRUCTION, 1, ~(p->avail_roadtypes | 1));
   941 	Window *w2 = PopupMainToolbMenu(w, 20, STR_180A_ROAD_CONSTRUCTION, 2, ~(p->avail_roadtypes | 1));
   942 	WP(w2, menu_d).sel_index = _last_built_roadtype;
   942 	WP(w2, menu_d).sel_index = _last_built_roadtype;
   943 }
   943 }
   944 
   944 
   945 static void ToolbarBuildWaterClick(Window *w)
   945 static void ToolbarBuildWaterClick(Window *w)
   946 {
   946 {