(svn r25009) -Codechange: refactor bits of cargo packet (lists) to reduce duplicated code (fonsinchen)

This commit is contained in:
rubidium
2013-02-17 14:17:06 +00:00
parent 84ca041564
commit 4301d77d65
3 changed files with 90 additions and 32 deletions

View File

@@ -1176,7 +1176,7 @@ void CargoPayment::PayFinalDelivery(const CargoPacket *cp, uint count)
this->route_profit += profit;
/* The vehicle's profit is whatever route profit there is minus feeder shares. */
this->visual_profit += profit - cp->FeederShare();
this->visual_profit += profit - cp->FeederShare(count);
}
/**