MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Postprocess

Method Postprocess

src/cargoaction.cpp:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 */
60template <class Tsource>
61bool 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.

Callers 1

operator()Method · 0.95

Calls 2

ReduceMethod · 0.80
CountMethod · 0.45

Tested by

no test coverage detected