From 548a605263f7764602d6ee7fc9ca3856bf00918b Mon Sep 17 00:00:00 2001 From: yexo Date: Sun, 21 Jun 2009 10:11:04 +0000 Subject: (svn r16613) -Fix [NewGRF]: some of the var action 2 80+ variables contained wrong results due to OpenTTD codechanges --- src/order_base.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/order_base.h') 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 @@ -232,6 +232,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. -- cgit v1.2.3-54-g00ecf