src/industry_gui.cpp
changeset 7487 9ef3bd32c2eb
parent 7315 f1b2591ad082
child 7498 ce6588257e8d
equal deleted inserted replaced
7486:d130c10f4dab 7487:9ef3bd32c2eb
    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 >> 8) * GetIndustrySpec(ind_type)->cost_multiplier);
    42 			SetDParamMoney(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: {