From 60f1eb21fa31d64c9b2651a09193a62472174a20 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 22 Sep 2007 13:56:38 +0000 Subject: (svn r11139) -Codechange: add support for persistent storage for NewGRFs. --- src/newgrf_spritegroup.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/newgrf_spritegroup.h') 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; -- cgit v1.2.3-54-g00ecf