diff options
author | belugas <belugas@openttd.org> | 2006-04-28 21:58:16 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-04-28 21:58:16 +0000 |
commit | 7ab8b20faf44696e276d3a15836df08bf21c7d3d (patch) | |
tree | 7a33e83753c8db062e024e30635d1349dc2275df /industry_gui.c | |
parent | d039d332ecbb96186249208e5692f900ef2ec07e (diff) | |
download | openttd-7ab8b20faf44696e276d3a15836df08bf21c7d3d.tar.xz |
(svn r4614) CodeChange : Cleanup of industry_cmd (Step-4).
Removing the _industry_type_costs in favor of IndustrySpec.cost_multiplier;
In order to let industry_gui use the GetIndustrySpec accessor,
some structs had to be moved in industry.h
Diffstat (limited to 'industry_gui.c')
-rw-r--r-- | industry_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/industry_gui.c b/industry_gui.c index 676cdd5f2..597a018b7 100644 --- a/industry_gui.c +++ b/industry_gui.c @@ -31,7 +31,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 >> 5) * _industry_type_costs[ind_type]); + SetDParam(0, (_price.build_industry >> 5) * GetIndustrySpec(ind_type)->cost_multiplier); DrawStringCentered(85, w->height - 21, STR_482F_COST, 0); } break; |