SmrShip: optimize checkForExcessCargo
SmrShip: optimize checkForExcessCargo

* Instead of recomputing the excess cargo each time we remove cargo,
  compute it once before the loop over goods, and then decrease that
  amount as we go along.

* Break early from the loop once there is no more excess, since
  there will be nothing more to do for the rest of the foreach loop.

Thanks to @Page- for the suggestions.

hemberger/smr,smrealms/smr,smrealms/smr,hemberger/smr,smrealms/smr,hemberger/smr,hemberger/smr