src/industry_gui.cpp
changeset 6815 3cc63cbcad5b
parent 6636 fec086b5c340
child 6819 f986f54e2660
equal deleted inserted replaced
6814:46c7d033c926 6815:3cc63cbcad5b
    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: {