(svn r20364) -Codechange: add infrastructure for airport callbacks

This commit is contained in:
yexo
2010-08-05 11:57:55 +00:00
parent fe6c557705
commit 6321eb5a00
2 changed files with 102 additions and 3 deletions

View File

@@ -349,9 +349,10 @@ struct ResolverObject {
bool upper_halftile; ///< Are we resolving sprites for the upper halftile?
} routes;
struct {
const struct Station *st;
byte airport_id;
TileIndex tile;
const struct Station *st; ///< Station of the airport for which the callback is run, or NULL for build gui.
byte airport_id; ///< Type of airport for which the callback is run
byte layout; ///< Layout of the airport to build.
TileIndex tile; ///< Tile for the callback, only valid for airporttile callbacks.
} airport;
} u;