ship_cmd.c
changeset 4845 49105d3b5a9a
parent 4739 bd535b408617
child 5198 2547d72f2db4
equal deleted inserted replaced
4844:15faacbff622 4845:49105d3b5a9a
  1087 		capacity = ShipVehInfo(v->engine_type)->capacity;
  1087 		capacity = ShipVehInfo(v->engine_type)->capacity;
  1088 	}
  1088 	}
  1089 	_returned_refit_capacity = capacity;
  1089 	_returned_refit_capacity = capacity;
  1090 
  1090 
  1091 	cost = 0;
  1091 	cost = 0;
  1092 	if (IS_HUMAN_PLAYER(v->owner) && new_cid != v->cargo_type) {
  1092 	if (IsHumanPlayer(v->owner) && new_cid != v->cargo_type) {
  1093 		cost = GetRefitCost(v->engine_type);
  1093 		cost = GetRefitCost(v->engine_type);
  1094 	}
  1094 	}
  1095 
  1095 
  1096 	if (flags & DC_EXEC) {
  1096 	if (flags & DC_EXEC) {
  1097 		v->cargo_cap = capacity;
  1097 		v->cargo_cap = capacity;