forked from mirror/OpenTTD
(svn r21604) -Add: Variable 7B for accessing 60+x variables while taking the parameter from the accumulator.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user