equal
deleted
inserted
replaced
37 case WE_PAINT: |
37 case WE_PAINT: |
38 DrawWindowWidgets(w); |
38 DrawWindowWidgets(w); |
39 if (_thd.place_mode == 1 && _thd.window_class == WC_BUILD_INDUSTRY) { |
39 if (_thd.place_mode == 1 && _thd.window_class == WC_BUILD_INDUSTRY) { |
40 int ind_type = _build_industry_types[_opt_ptr->landscape][WP(w, def_d).data_1]; |
40 int ind_type = _build_industry_types[_opt_ptr->landscape][WP(w, def_d).data_1]; |
41 |
41 |
42 SetDParam(0, (_price.build_industry >> 5) * GetIndustrySpec(ind_type)->cost_multiplier); |
42 SetDParam(0, (_price.build_industry >> 8) * GetIndustrySpec(ind_type)->cost_multiplier); |
43 DrawStringCentered(85, w->height - 21, STR_482F_COST, 0); |
43 DrawStringCentered(85, w->height - 21, STR_482F_COST, 0); |
44 } |
44 } |
45 break; |
45 break; |
46 |
46 |
47 case WE_CLICK: { |
47 case WE_CLICK: { |