equal
deleted
inserted
replaced
1119 } |
1119 } |
1120 _returned_refit_capacity = capacity; |
1120 _returned_refit_capacity = capacity; |
1121 |
1121 |
1122 cost = 0; |
1122 cost = 0; |
1123 if (IS_HUMAN_PLAYER(v->owner) && new_cid != v->cargo_type) { |
1123 if (IS_HUMAN_PLAYER(v->owner) && new_cid != v->cargo_type) { |
1124 cost = (EngInfo(v->engine_type)->refit_cost * _price.ship_base) >> 10; |
1124 cost = GetRefitCost(v->engine_type); |
1125 } |
1125 } |
1126 |
1126 |
1127 if (flags & DC_EXEC) { |
1127 if (flags & DC_EXEC) { |
1128 v->cargo_cap = capacity; |
1128 v->cargo_cap = capacity; |
1129 v->cargo_count = (v->cargo_type == new_cid) ? min(v->cargo_cap, v->cargo_count) : 0; |
1129 v->cargo_count = (v->cargo_type == new_cid) ? min(v->cargo_cap, v->cargo_count) : 0; |