newgrf_spritegroup.c
changeset 5081 fe3a6da19d9f
parent 5022 313d3630a122
child 5216 8bd14ee39af2
equal deleted inserted replaced
5080:2f268952e410 5081:fe3a6da19d9f
     9 #include "date.h"
     9 #include "date.h"
    10 
    10 
    11 static void SpriteGroupPoolCleanBlock(uint start_item, uint end_item);
    11 static void SpriteGroupPoolCleanBlock(uint start_item, uint end_item);
    12 
    12 
    13 static uint _spritegroup_count = 0;
    13 static uint _spritegroup_count = 0;
    14 STATIC_POOL(SpriteGroup, SpriteGroup, 4, 8000, NULL, SpriteGroupPoolCleanBlock);
    14 STATIC_POOL(SpriteGroup, SpriteGroup, 4, 8000, NULL, SpriteGroupPoolCleanBlock)
    15 
    15 
    16 static void DestroySpriteGroup(SpriteGroup *group)
    16 static void DestroySpriteGroup(SpriteGroup *group)
    17 {
    17 {
    18 	/* Free dynamically allocated memory */
    18 	/* Free dynamically allocated memory */
    19 	/* XXX Cast away the consts due to MSVC being buggy... */
    19 	/* XXX Cast away the consts due to MSVC being buggy... */