From c53682810f4f6462840a3da9521e48d0bfd57e05 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 7 Oct 2009 08:31:42 +0000 Subject: (svn r17736) -Codechange [FS#3135]: rewrite CargoList::MoveTo; don't require the secondary list, use cache updates instead of rebuilds. This is usually faster because of primarily gradual loading that only moves a (small) part of the cargo each time. Based on patch by fonsinchen. --- src/cargopacket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cargopacket.h') diff --git a/src/cargopacket.h b/src/cargopacket.h index 9d8251550..e29bb2045 100644 --- a/src/cargopacket.h +++ b/src/cargopacket.h @@ -266,9 +266,9 @@ public: /** * Truncates the cargo in this list to the given amount. It leaves the * first count cargo entities and removes the rest. - * @param count the maximum amount of entities to be in the list after the command + * @param max_remaining the maximum amount of entities to be in the list after the command */ - void Truncate(uint count); + void Truncate(uint max_remaining); /** * Moves the given amount of cargo to another list. -- cgit v1.2.3-54-g00ecf