(svn r4471) - Pools: Add a facility for calling a custom function during pool block clean up.

This commit is contained in:
peter1138
2006-04-18 18:48:50 +00:00
parent 24ef4ce560
commit ae7ec5cd0d
12 changed files with 20 additions and 12 deletions

View File

@@ -38,7 +38,7 @@ static void IndustryPoolNewBlock(uint start_item)
}
/* Initialize the industry-pool */
MemoryPool _industry_pool = { "Industry", INDUSTRY_POOL_MAX_BLOCKS, INDUSTRY_POOL_BLOCK_SIZE_BITS, sizeof(Industry), &IndustryPoolNewBlock, 0, 0, NULL };
MemoryPool _industry_pool = { "Industry", INDUSTRY_POOL_MAX_BLOCKS, INDUSTRY_POOL_BLOCK_SIZE_BITS, sizeof(Industry), &IndustryPoolNewBlock, NULL, 0, 0, NULL };
static byte _industry_sound_ctr;
static TileIndex _industry_sound_tile;