equal
deleted
inserted
replaced
1096 return_cmd_error(STR_980B_SHIP_MUST_BE_STOPPED_IN); |
1096 return_cmd_error(STR_980B_SHIP_MUST_BE_STOPPED_IN); |
1097 } |
1097 } |
1098 |
1098 |
1099 /* Check cargo */ |
1099 /* Check cargo */ |
1100 if (!ShipVehInfo(v->engine_type)->refittable) return CMD_ERROR; |
1100 if (!ShipVehInfo(v->engine_type)->refittable) return CMD_ERROR; |
1101 if (new_cid > NUM_CARGO || !CanRefitTo(v->engine_type, new_cid)) return CMD_ERROR; |
1101 if (new_cid >= NUM_CARGO || !CanRefitTo(v->engine_type, new_cid)) return CMD_ERROR; |
1102 |
1102 |
1103 SET_EXPENSES_TYPE(EXPENSES_SHIP_RUN); |
1103 SET_EXPENSES_TYPE(EXPENSES_SHIP_RUN); |
1104 |
1104 |
1105 /* Check the refit capacity callback */ |
1105 /* Check the refit capacity callback */ |
1106 if (HASBIT(EngInfo(v->engine_type)->callbackmask, CBM_REFIT_CAPACITY)) { |
1106 if (HASBIT(EngInfo(v->engine_type)->callbackmask, CBM_REFIT_CAPACITY)) { |