summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-06-17 07:05:17 +0000
committerpeter1138 <peter1138@openttd.org>2008-06-17 07:05:17 +0000
commit26879ce24af3ef8f1633256d5a60c4e7bbd18101 (patch)
tree36d45895db2c85f2e9b7c2b6df6261128cc0eaa8
parentd3fa4228cb8419ab693a547556c141d264d89a3f (diff)
downloadopenttd-26879ce24af3ef8f1633256d5a60c4e7bbd18101.tar.xz
(svn r13544) -Codechange: Add support for NewGRF varaction2 variable 5F.
-rw-r--r--src/newgrf_spritegroup.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf_spritegroup.cpp b/src/newgrf_spritegroup.cpp
index 91b583639..d2e19fb3e 100644
--- a/src/newgrf_spritegroup.cpp
+++ b/src/newgrf_spritegroup.cpp
@@ -93,6 +93,8 @@ static inline uint32 GetVariable(const ResolverObject *object, byte variable, by
case 0x18: return object->callback_param2;
case 0x1C: return object->last_value;
+ case 0x5F: return (object->GetRandomBits(object) << 8) | object->GetTriggers(object);
+
case 0x7D: return _temp_store.Get(parameter);
/* Not a common variable, so evalute the feature specific variables */