(svn r18912) -Codechange: free up a bunch of airporttile ids by using the tile animation frame

This commit is contained in:
yexo
2010-01-24 20:25:28 +00:00
parent 6ff482f515
commit 388c713f08
7 changed files with 279 additions and 346 deletions

View File

@@ -21,11 +21,7 @@ enum {
MAX_TERMINALS = 10, ///< maximum number of terminals per airport
MAX_HELIPADS = 4, ///< maximum number of helipads per airport
MAX_ELEMENTS = 255, ///< maximum number of aircraft positions at airport
NUM_AIRPORTTILES = 144, ///< total number of airport tiles
};
enum {
AIRPORTTILE_NOANIM = 0xFF, ///< flag to mark airport tiles as having no animation
NUM_AIRPORTTILES = 74, ///< total number of airport tiles
};
/** Airport types */
@@ -79,7 +75,7 @@ struct AirportSpec {
* Defines the data structure of each indivudual tile of an airport.
*/
struct AirportTileSpec {
StationGfx anim_next; ///< Next StationGfx in an animation
uint16 animation_info; ///< Information about the animation (is it looping, how many loops etc)
uint8 animation_speed; ///< The speed of the animation
static const AirportTileSpec *Get(StationGfx gfx);