diff options
author | rubidium <rubidium@openttd.org> | 2007-07-06 07:24:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-06 07:24:10 +0000 |
commit | 0d68a919d95c9fee62bf22813365b3c5623ca1b1 (patch) | |
tree | b968dc7033dc02846b7d649f91e6effd2ae181e5 /src/industry_gui.cpp | |
parent | 94315ff15f5b37f5c9c05d6a104ea73a8455b719 (diff) | |
download | openttd-0d68a919d95c9fee62bf22813365b3c5623ca1b1.tar.xz |
(svn r10451) -Add: support for "prospecting" raw industries, i.e. you pay an amount of money and then it might (with a given chance) build a raw industry somewhere on the map.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index dca4ef7ac..fa0b9746d 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -39,7 +39,7 @@ static void BuildIndustryWndProc(Window *w, WindowEvent *e) if (_thd.place_mode == 1 && _thd.window_class == WC_BUILD_INDUSTRY) { int ind_type = _build_industry_types[_opt_ptr->landscape][WP(w, def_d).data_1]; - SetDParam(0, (_price.build_industry >> 8) * GetIndustrySpec(ind_type)->cost_multiplier); + SetDParam(0, (_price.build_industry >> 8) * (_patches.raw_industry_construction == 1 ? GetIndustrySpec(ind_type)->raw_industry_cost_multiplier : GetIndustrySpec(ind_type)->cost_multiplier)); DrawStringCentered(85, w->height - 21, STR_482F_COST, 0); } break; @@ -274,7 +274,7 @@ static const WindowDesc * const _industry_window_desc[2][4] = { void ShowBuildIndustryWindow() { if (!IsValidPlayer(_current_player)) return; - AllocateWindowDescFront(_industry_window_desc[_patches.build_rawmaterial_ind][_opt_ptr->landscape], 0); + AllocateWindowDescFront(_industry_window_desc[(_patches.raw_industry_construction == 0) ? 0 : 1][_opt_ptr->landscape], 0); } static inline bool isProductionMinimum(const Industry *i, int pt) { |