| 59 | */ |
| 60 | template <class Tsource> |
| 61 | bool CargoRemoval<Tsource>::Postprocess(CargoPacket *cp, uint remove) |
| 62 | { |
| 63 | if (remove == cp->Count()) { |
| 64 | delete cp; |
| 65 | return true; |
| 66 | } else { |
| 67 | cp->Reduce(remove); |
| 68 | return false; |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Removes some cargo from a StationCargoList. |
no test coverage detected