mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r22559) -Codechange: Remove constness from Station in ResolverObject.
This commit is contained in:
parent
c98a8308cc
commit
e8df5563db
|
@ -221,7 +221,7 @@ static uint32 AirportTileGetRandomBits(const ResolverObject *object)
|
|||
return (st == NULL ? 0 : st->random_bits) | (tile == INVALID_TILE ? 0 : GetStationTileRandomBits(tile) << 16);
|
||||
}
|
||||
|
||||
static void AirportTileResolver(ResolverObject *res, const AirportTileSpec *ats, TileIndex tile, const Station *st)
|
||||
static void AirportTileResolver(ResolverObject *res, const AirportTileSpec *ats, TileIndex tile, Station *st)
|
||||
{
|
||||
res->GetRandomBits = AirportTileGetRandomBits;
|
||||
res->GetTriggers = NULL;
|
||||
|
|
|
@ -365,7 +365,7 @@ struct ResolverObject {
|
|||
TileContext context; ///< Are we resolving sprites for the upper halftile, or on a bridge?
|
||||
} routes;
|
||||
struct {
|
||||
const struct Station *st; ///< Station of the airport for which the callback is run, or NULL for build gui.
|
||||
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.
|
||||
|
|
|
@ -112,7 +112,7 @@ const StationSpec *GetStationSpec(TileIndex t);
|
|||
uint32 GetPlatformInfo(Axis axis, byte tile, int platforms, int length, int x, int y, bool centred);
|
||||
|
||||
SpriteID GetCustomStationRelocation(const StationSpec *statspec, BaseStation *st, TileIndex tile, uint32 var10 = 0);
|
||||
SpriteID GetCustomStationFoundationRelocation(const StationSpec *statspec, const BaseStation *st, TileIndex tile, uint layout, uint edge_info);
|
||||
SpriteID GetCustomStationFoundationRelocation(const StationSpec *statspec, BaseStation *st, TileIndex tile, uint layout, uint edge_info);
|
||||
uint16 GetStationCallback(CallbackID callback, uint32 param1, uint32 param2, const StationSpec *statspec, BaseStation *st, TileIndex tile);
|
||||
|
||||
/* Allocate a StationSpec to a Station. This is called once per build operation. */
|
||||
|
|
Loading…
Reference in New Issue