(svn r19193) -Codechange: increase the maximum number of airport tiles to 256 and introduce AirportTileOverrideManager

This commit is contained in:
yexo
2010-02-22 14:15:48 +00:00
parent d93bfaac26
commit 966382f3d8
7 changed files with 90 additions and 19 deletions

View File

@@ -16,12 +16,14 @@
#include "map_type.h"
#include "date_type.h"
/** Current limits for airports */
/** Some airport-related constants */
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 = 74, ///< total number of airport tiles
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 = 256, ///< total number of airport tiles
NEW_AIRPORTTILE_OFFSET = 74, ///< offset of first newgrf airport tile
INVALID_AIRPORTTILE = NUM_AIRPORTTILES, ///< id for an invalid airport tile
};
/** Airport types */