equal
deleted
inserted
replaced
2132 |
2132 |
2133 v = GetVehicle(p1); |
2133 v = GetVehicle(p1); |
2134 |
2134 |
2135 if (v->type != VEH_ROAD || !CheckOwnership(v->owner)) return CMD_ERROR; |
2135 if (v->type != VEH_ROAD || !CheckOwnership(v->owner)) return CMD_ERROR; |
2136 if (!CheckRoadVehInDepotStopped(v)) return_cmd_error(STR_9013_MUST_BE_STOPPED_INSIDE); |
2136 if (!CheckRoadVehInDepotStopped(v)) return_cmd_error(STR_9013_MUST_BE_STOPPED_INSIDE); |
|
2137 if (v->vehstatus & VS_CRASHED) return_cmd_error(STR_CAN_T_REFIT_DESTROYED_VEHICLE); |
2137 |
2138 |
2138 if (new_cid >= NUM_CARGO) return CMD_ERROR; |
2139 if (new_cid >= NUM_CARGO) return CMD_ERROR; |
2139 |
2140 |
2140 SET_EXPENSES_TYPE(EXPENSES_ROADVEH_RUN); |
2141 SET_EXPENSES_TYPE(EXPENSES_ROADVEH_RUN); |
2141 |
2142 |