(svn r21849) -Codechange: move merging/splitting of cargopackets into a helper function (fonsinchen)

This commit is contained in:
rubidium
2011-01-19 16:25:00 +00:00
parent 07e14525b8
commit 2707186f6a
2 changed files with 32 additions and 9 deletions

View File

@@ -62,10 +62,12 @@ public:
/** Destroy the packet. */
~CargoPacket() { }
CargoPacket *Split(uint new_size);
void Merge(CargoPacket *cp);
/**
* Gets the number of 'items' in this packet.
* @return the item count.
* @return Item count.
*/
FORCEINLINE uint16 Count() const
{