equal
deleted
inserted
replaced
3351 v->current_order.dest = depot->index; |
3351 v->current_order.dest = depot->index; |
3352 v->dest_tile = tfdd.tile; |
3352 v->dest_tile = tfdd.tile; |
3353 InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); |
3353 InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); |
3354 } |
3354 } |
3355 |
3355 |
3356 int32 GetTrainRunningCost(const Vehicle *v) |
3356 Money GetTrainRunningCost(const Vehicle *v) |
3357 { |
3357 { |
3358 int32 cost = 0; |
3358 Money cost = 0; |
3359 |
3359 |
3360 do { |
3360 do { |
3361 const RailVehicleInfo *rvi = RailVehInfo(v->engine_type); |
3361 const RailVehicleInfo *rvi = RailVehInfo(v->engine_type); |
3362 |
3362 |
3363 byte cost_factor = GetVehicleProperty(v, 0x0D, rvi->running_cost_base); |
3363 byte cost_factor = GetVehicleProperty(v, 0x0D, rvi->running_cost_base); |