diff options
author | frosch <frosch@openttd.org> | 2010-12-22 22:03:57 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-12-22 22:03:57 +0000 |
commit | 256fe89b38b21738154e606137bdeb997a2a1565 (patch) | |
tree | dddcd7e1fda9ca8e1f741c1cb484596a7dea95b4 /src | |
parent | e9a595bda04e169a4a730ad2715363349fb73021 (diff) | |
download | openttd-256fe89b38b21738154e606137bdeb997a2a1565.tar.xz |
(svn r21604) -Add: Variable 7B for accessing 60+x variables while taking the parameter from the accumulator.
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_spritegroup.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf_spritegroup.cpp b/src/newgrf_spritegroup.cpp index 23521c360..5edf44b28 100644 --- a/src/newgrf_spritegroup.cpp +++ b/src/newgrf_spritegroup.cpp @@ -155,6 +155,8 @@ const SpriteGroup *DeterministicSpriteGroup::Resolve(ResolverObject *object) con /* Reset values to current scope. * Note: 'last_value' and 'reseed' are shared between the main chain and the procedure */ object->scope = this->var_scope; + } else if (adjust->variable == 0x7B) { + value = GetVariable(object, adjust->parameter, last_value, &available); } else { value = GetVariable(object, adjust->variable, adjust->parameter, &available); } |