equal
deleted
inserted
replaced
124 SetDParam(0, (_price.build_railvehicle >> 3) * rvi->base_cost >> 5); |
124 SetDParam(0, (_price.build_railvehicle >> 3) * rvi->base_cost >> 5); |
125 SetDParam(2, rvi->max_speed * 10 / 16); |
125 SetDParam(2, rvi->max_speed * 10 / 16); |
126 SetDParam(3, rvi->power << multihead); |
126 SetDParam(3, rvi->power << multihead); |
127 SetDParam(1, rvi->weight << multihead); |
127 SetDParam(1, rvi->weight << multihead); |
128 |
128 |
129 SetDParam(4, rvi->running_cost_base * _price.running_rail[rvi->running_cost_class] >> 8 << multihead); |
129 SetDParam(4, rvi->running_cost * GetPriceByIndex(rvi->running_cost_class) >> 8 << multihead); |
130 |
130 |
131 if (rvi->capacity != 0) { |
131 if (rvi->capacity != 0) { |
132 SetDParam(5, rvi->cargo_type); |
132 SetDParam(5, rvi->cargo_type); |
133 SetDParam(6, rvi->capacity << multihead); |
133 SetDParam(6, rvi->capacity << multihead); |
134 } else { |
134 } else { |
153 { |
153 { |
154 const RoadVehicleInfo *rvi = RoadVehInfo(engine); |
154 const RoadVehicleInfo *rvi = RoadVehInfo(engine); |
155 |
155 |
156 SetDParam(0, (_price.roadveh_base >> 3) * rvi->base_cost >> 5); |
156 SetDParam(0, (_price.roadveh_base >> 3) * rvi->base_cost >> 5); |
157 SetDParam(1, rvi->max_speed * 10 / 32); |
157 SetDParam(1, rvi->max_speed * 10 / 32); |
158 SetDParam(2, rvi->running_cost * _price.roadveh_running >> 8); |
158 SetDParam(2, rvi->running_cost * GetPriceByIndex(rvi->running_cost_class) >> 8); |
159 SetDParam(3, rvi->cargo_type); |
159 SetDParam(3, rvi->cargo_type); |
160 SetDParam(4, rvi->capacity); |
160 SetDParam(4, rvi->capacity); |
161 |
161 |
162 DrawStringMultiCenter(x, y, STR_902A_COST_SPEED_RUNNING_COST, maxw); |
162 DrawStringMultiCenter(x, y, STR_902A_COST_SPEED_RUNNING_COST, maxw); |
163 } |
163 } |