summaryrefslogtreecommitdiff
path: root/src/order_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/order_base.h')
-rw-r--r--src/order_base.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/order_base.h b/src/order_base.h
index 442a9ae21..4b1aba9b4 100644
--- a/src/order_base.h
+++ b/src/order_base.h
@@ -233,6 +233,13 @@ public:
uint32 Pack() const;
/**
+ * Pack this order into a 16 bits integer as close to the TTD
+ * representation as possible.
+ * @return the TTD-like packed representation.
+ */
+ uint16 MapOldOrder() const;
+
+ /**
* Converts this order from an old savegame's version;
* it moves all bits to the new location.
*/