(svn r13885) -Fix [FS#2168]: Var 0x7F is not feature-specific.

This commit is contained in:
frosch
2008-07-30 18:23:12 +00:00
parent d4774bdbab
commit d54d8bf295
14 changed files with 32 additions and 59 deletions

View File

@@ -97,6 +97,10 @@ static inline uint32 GetVariable(const ResolverObject *object, byte variable, by
case 0x7D: return _temp_store.Get(parameter);
case 0x7F:
if (object == NULL || object->grffile == NULL || parameter >= object->grffile->param_end) return 0;
return object->grffile->param[parameter];
/* Not a common variable, so evalute the feature specific variables */
default: return object->GetVariable(object, variable, parameter, available);
}