summaryrefslogtreecommitdiff
path: root/src/cargopacket.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-10-07 08:31:42 +0000
committerrubidium <rubidium@openttd.org>2009-10-07 08:31:42 +0000
commitc53682810f4f6462840a3da9521e48d0bfd57e05 (patch)
tree782c76fc529882fa9394aeefcc35d88413296330 /src/cargopacket.h
parent705615fd914c51daacf4adb2aed9e21e6698e755 (diff)
downloadopenttd-c53682810f4f6462840a3da9521e48d0bfd57e05.tar.xz
(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.
Diffstat (limited to 'src/cargopacket.h')
-rw-r--r--src/cargopacket.h4
1 files changed, 2 insertions, 2 deletions
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.