diff options
author | yexo <yexo@openttd.org> | 2009-06-21 10:11:04 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-06-21 10:11:04 +0000 |
commit | 548a605263f7764602d6ee7fc9ca3856bf00918b (patch) | |
tree | 6eabc072c7905e2561c83ddfb8cc0efd51147c75 /src/order_base.h | |
parent | 41c8baa7dcf38e85b1ebbee9de77d5b5a31b6622 (diff) | |
download | openttd-548a605263f7764602d6ee7fc9ca3856bf00918b.tar.xz |
(svn r16613) -Fix [NewGRF]: some of the var action 2 80+ variables contained wrong results due to OpenTTD codechanges
Diffstat (limited to 'src/order_base.h')
-rw-r--r-- | src/order_base.h | 7 |
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. */ |