(svn r22563) -Codechange: Use a function for storing values inside the persistent storage.

This commit is contained in:
terkhen
2011-06-12 20:38:46 +00:00
parent 713acf1ad3
commit ac4f4447e0
6 changed files with 45 additions and 7 deletions

View File

@@ -314,8 +314,6 @@ struct ResolverObject {
VarSpriteGroupScope scope; ///< Scope of currently resolved DeterministicSpriteGroup resp. RandomizedSpriteGroup
byte count; ///< Additional scope for RandomizedSpriteGroup
BaseStorageArray *psa; ///< The persistent storage array of this resolved object.
const GRFFile *grffile; ///< GRFFile the resolved SpriteGroup belongs to
union {
@@ -382,6 +380,7 @@ struct ResolverObject {
void (*SetTriggers)(const struct ResolverObject*, int);
uint32 (*GetVariable)(const struct ResolverObject*, byte, byte, bool*);
const SpriteGroup *(*ResolveReal)(const struct ResolverObject*, const RealSpriteGroup*);
void (*StorePSA)(struct ResolverObject*, uint, int32);
};
#endif /* NEWGRF_SPRITEGROUP_H */