equal
deleted
inserted
replaced
269 &_build_industry_land2_desc_extra, |
269 &_build_industry_land2_desc_extra, |
270 &_build_industry_land3_desc_extra, |
270 &_build_industry_land3_desc_extra, |
271 }, |
271 }, |
272 }; |
272 }; |
273 |
273 |
274 void ShowBuildIndustryWindow(void) |
274 void ShowBuildIndustryWindow() |
275 { |
275 { |
276 if (!IsValidPlayer(_current_player)) return; |
276 if (!IsValidPlayer(_current_player)) return; |
277 AllocateWindowDescFront(_industry_window_desc[_patches.build_rawmaterial_ind][_opt_ptr->landscape],0); |
277 AllocateWindowDescFront(_industry_window_desc[_patches.build_rawmaterial_ind][_opt_ptr->landscape],0); |
278 } |
278 } |
279 |
279 |
559 * Makes a sorted industry list. |
559 * Makes a sorted industry list. |
560 * When there are no industries, the list has to be made. This so when one |
560 * When there are no industries, the list has to be made. This so when one |
561 * starts a new game without industries after playing a game with industries |
561 * starts a new game without industries after playing a game with industries |
562 * the list is not populated with invalid industries from the previous game. |
562 * the list is not populated with invalid industries from the previous game. |
563 */ |
563 */ |
564 static void MakeSortedIndustryList(void) |
564 static void MakeSortedIndustryList() |
565 { |
565 { |
566 const Industry* i; |
566 const Industry* i; |
567 int n = 0; |
567 int n = 0; |
568 |
568 |
569 /* Create array for sorting */ |
569 /* Create array for sorting */ |
688 _industry_directory_widgets, |
688 _industry_directory_widgets, |
689 IndustryDirectoryWndProc |
689 IndustryDirectoryWndProc |
690 }; |
690 }; |
691 |
691 |
692 |
692 |
693 void ShowIndustryDirectory(void) |
693 void ShowIndustryDirectory() |
694 { |
694 { |
695 Window *w = AllocateWindowDescFront(&_industry_directory_desc, 0); |
695 Window *w = AllocateWindowDescFront(&_industry_directory_desc, 0); |
696 |
696 |
697 if (w != NULL) { |
697 if (w != NULL) { |
698 w->vscroll.cap = 16; |
698 w->vscroll.cap = 16; |