summaryrefslogtreecommitdiff
path: root/src/newgrf_spritegroup.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-09-22 13:56:38 +0000
committerrubidium <rubidium@openttd.org>2007-09-22 13:56:38 +0000
commit81555c732d0718c7ceb8990012012055377a7017 (patch)
tree1f92395e697eada656f8d47222f9f227028ec271 /src/newgrf_spritegroup.h
parented96cd271123b9c9936c08b9c721afe2b4695c56 (diff)
downloadopenttd-81555c732d0718c7ceb8990012012055377a7017.tar.xz
(svn r11139) -Codechange: add support for persistent storage for NewGRFs.
Diffstat (limited to 'src/newgrf_spritegroup.h')
-rw-r--r--src/newgrf_spritegroup.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_spritegroup.h b/src/newgrf_spritegroup.h
index 50b75b849..ebe07cd63 100644
--- a/src/newgrf_spritegroup.h
+++ b/src/newgrf_spritegroup.h
@@ -76,6 +76,7 @@ enum DeterministicSpriteGroupAdjustOperation {
DSGA_OP_XOR, ///< a ^ b
DSGA_OP_STO, ///< store a into temporary storage, indexed by b. return a
DSGA_OP_RST, ///< return b
+ DSGA_OP_STOP, ///< store a into persistent storage, indexed by b, return a
};
@@ -199,6 +200,8 @@ struct ResolverObject {
bool info_view; ///< Indicates if the item is being drawn in an info window
+ BaseStorageArray *psa; ///< The persistent storage array of this resolved object.
+
union {
struct {
const struct Vehicle *self;