* Reduce the packet by the given amount and remove the feeder share. * @param count Amount to be removed. */
| 118 | * @param count Amount to be removed. |
| 119 | */ |
| 120 | void CargoPacket::Reduce(uint count) |
| 121 | { |
| 122 | assert(count < this->count); |
| 123 | this->feeder_share -= this->GetFeederShare(count); |
| 124 | this->count -= count; |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * Invalidates (sets source_id to INVALID_SOURCE) all cargo packets from given source. |
no test coverage detected