summaryrefslogtreecommitdiff
path: root/sprite.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-20 20:51:57 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-20 20:51:57 +0000
commit103a2aa1164fe92552cfe64c46d99b4b7dd5e82a (patch)
tree097bbbafd144f585288535083f426339d840e0f4 /sprite.h
parentc8b1ff8654708fa0b156bb0936c5bb7053850854 (diff)
downloadopenttd-103a2aa1164fe92552cfe64c46d99b4b7dd5e82a.tar.xz
(svn r4486) - NewGRF: Create and use a memory pool to manage sprite groups. This
reduces the amount of house keeping we do and the chance of memory leaks.
Diffstat (limited to 'sprite.h')
-rw-r--r--sprite.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sprite.h b/sprite.h
index cba95de44..f665fb0d5 100644
--- a/sprite.h
+++ b/sprite.h
@@ -118,6 +118,7 @@ typedef struct ResultSpriteGroup {
} ResultSpriteGroup;
typedef enum SpriteGroupType {
+ SGT_INVALID,
SGT_REAL,
SGT_DETERMINISTIC,
SGT_RANDOMIZED,
@@ -127,7 +128,6 @@ typedef enum SpriteGroupType {
struct SpriteGroup {
SpriteGroupType type;
- byte ref_count;
union {
RealSpriteGroup real;
@@ -160,6 +160,4 @@ SpriteGroup *EvalRandomizedSpriteGroup(const RandomizedSpriteGroup *rsg, byte ra
* (then they are |ed to @waiting_triggers instead). */
byte RandomizedSpriteGroupTriggeredBits(const RandomizedSpriteGroup *rsg, byte triggers, byte *waiting_triggers);
-void UnloadSpriteGroup(SpriteGroup **group_ptr);
-
#endif /* SPRITE_H */