depot.h
changeset 5216 8bd14ee39af2
parent 5081 fe3a6da19d9f
child 5255 b693a9941b8c
equal deleted inserted replaced
5215:b8fb685df4c5 5216:8bd14ee39af2
     5 
     5 
     6 /** @file depot.h Header files for depots (not hangars)
     6 /** @file depot.h Header files for depots (not hangars)
     7  *  @see depot.c */
     7  *  @see depot.c */
     8 
     8 
     9 #include "direction.h"
     9 #include "direction.h"
    10 #include "pool.h"
    10 #include "oldpool.h"
    11 #include "tile.h"
    11 #include "tile.h"
    12 #include "variables.h"
    12 #include "variables.h"
    13 
    13 
    14 struct Depot {
    14 struct Depot {
    15 	TileIndex xy;
    15 	TileIndex xy;
    16 	TownID town_index;
    16 	TownID town_index;
    17 	DepotID index;
    17 	DepotID index;
    18 };
    18 };
    19 
    19 
    20 DECLARE_POOL(Depot, Depot, 3, 8000)
    20 DECLARE_OLD_POOL(Depot, Depot, 3, 8000)
    21 
    21 
    22 /**
    22 /**
    23  * Check if a depot really exists.
    23  * Check if a depot really exists.
    24  */
    24  */
    25 static inline bool IsValidDepot(const Depot *depot)
    25 static inline bool IsValidDepot(const Depot *depot)