mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-13 07:10:57 +00:00
(svn r13544) -Codechange: Add support for NewGRF varaction2 variable 5F.
This commit is contained in:
parent
fb4619c8ea
commit
ea965c21e1
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user