(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.

This commit is contained in:
rubidium
2009-10-07 08:31:42 +00:00
parent 705615fd91
commit c53682810f
2 changed files with 57 additions and 57 deletions

View File

@@ -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.