diff options
author | peter1138 <peter1138@openttd.org> | 2006-04-20 20:51:57 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-04-20 20:51:57 +0000 |
commit | 92d8af75dbf7a258f8964924a47dab199c4369e6 (patch) | |
tree | 097bbbafd144f585288535083f426339d840e0f4 /sprite.h | |
parent | fe6dadad7bca7a772fe5626c59b44b243324e6f5 (diff) | |
download | openttd-92d8af75dbf7a258f8964924a47dab199c4369e6.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.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 */ |