mirror of https://github.com/OpenTTD/OpenTTD
(svn r21604) -Add: Variable 7B for accessing 60+x variables while taking the parameter from the accumulator.
parent
e9a595bda0
commit
256fe89b38
|
@ -155,6 +155,8 @@ const SpriteGroup *DeterministicSpriteGroup::Resolve(ResolverObject *object) con
|
||||||
/* Reset values to current scope.
|
/* Reset values to current scope.
|
||||||
* Note: 'last_value' and 'reseed' are shared between the main chain and the procedure */
|
* Note: 'last_value' and 'reseed' are shared between the main chain and the procedure */
|
||||||
object->scope = this->var_scope;
|
object->scope = this->var_scope;
|
||||||
|
} else if (adjust->variable == 0x7B) {
|
||||||
|
value = GetVariable(object, adjust->parameter, last_value, &available);
|
||||||
} else {
|
} else {
|
||||||
value = GetVariable(object, adjust->variable, adjust->parameter, &available);
|
value = GetVariable(object, adjust->variable, adjust->parameter, &available);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue