industry_gui.c
changeset 1388 ee6b7233e4b1
parent 1386 0de4f8541aea
child 1666 46dc094142b1
equal deleted inserted replaced
1387:bc0131072af9 1388:ee6b7233e4b1
   268 void ShowBuildIndustryWindow(void)
   268 void ShowBuildIndustryWindow(void)
   269 {
   269 {
   270 	AllocateWindowDescFront(_industry_window_desc[_patches.build_rawmaterial_ind][_opt.landscape],0);
   270 	AllocateWindowDescFront(_industry_window_desc[_patches.build_rawmaterial_ind][_opt.landscape],0);
   271 }
   271 }
   272 
   272 
   273 #define NEED_ALTERB	((_game_mode == GM_EDITOR || _cheats.setup_prod.value) && i->accepts_cargo[0] == CT_INVALID)
   273 #define NEED_ALTERB	((_game_mode == GM_EDITOR || _cheats.setup_prod.value) && (i->accepts_cargo[0] == CT_INVALID || i->accepts_cargo[0] == CT_VALUABLES))
   274 static void IndustryViewWndProc(Window *w, WindowEvent *e)
   274 static void IndustryViewWndProc(Window *w, WindowEvent *e)
   275 {
   275 {
   276 	// WP(w,vp2_d).data_1 is for the editbox line
   276 	// WP(w,vp2_d).data_1 is for the editbox line
   277 	// WP(w,vp2_d).data_2 is for the clickline
   277 	// WP(w,vp2_d).data_2 is for the clickline
   278 	// WP(w,vp2_d).data_3 is for the click pos (left or right)
   278 	// WP(w,vp2_d).data_3 is for the click pos (left or right)