changeset 16870:35ca0d633732 draft

(svn r21604) -Add: Variable 7B for accessing 60+x variables while taking the parameter from the accumulator.
author frosch <frosch@openttd.org>
date Wed, 22 Dec 2010 22:03:57 +0000
parents 63f8b6eeb72c
children 39e28608198f
files src/newgrf_spritegroup.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_spritegroup.cpp
+++ b/src/newgrf_spritegroup.cpp
@@ -155,6 +155,8 @@
 			/* 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);
 		}