(svn r4960) - NewGRF: explicitly handle unsupported variables, instead of returning -1.

This commit is contained in:
2006-05-23 19:36:50 +00:00
parent f6c5b3e78a
commit ae8f4f8d9a
4 changed files with 34 additions and 26 deletions

View File

@@ -180,7 +180,7 @@ typedef struct ResolverObject {
uint32 (*GetRandomBits)(const struct ResolverObject*);
uint32 (*GetTriggers)(const struct ResolverObject*);
void (*SetTriggers)(const struct ResolverObject*, int);
uint32 (*GetVariable)(const struct ResolverObject*, byte, byte);
uint32 (*GetVariable)(const struct ResolverObject*, byte, byte, bool*);
const SpriteGroup *(*ResolveReal)(const struct ResolverObject*, const SpriteGroup*);
} ResolverObject;