diff options
author | terkhen <terkhen@openttd.org> | 2011-06-12 20:34:37 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2011-06-12 20:34:37 +0000 |
commit | e8df5563dbf171aa5953a31d71cf30d42bbf4162 (patch) | |
tree | c82e0c81f592a8acd9bcfc570bb6e9903d9d168e /src | |
parent | c98a8308cc1d0e820a96b618bdd2045580f1e173 (diff) | |
download | openttd-e8df5563dbf171aa5953a31d71cf30d42bbf4162.tar.xz |
(svn r22559) -Codechange: Remove constness from Station in ResolverObject.
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_airporttiles.cpp | 2 | ||||
-rw-r--r-- | src/newgrf_spritegroup.h | 2 | ||||
-rw-r--r-- | src/newgrf_station.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_airporttiles.cpp b/src/newgrf_airporttiles.cpp index 89498416b..0c029d9c4 100644 --- a/src/newgrf_airporttiles.cpp +++ b/src/newgrf_airporttiles.cpp @@ -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; diff --git a/src/newgrf_spritegroup.h b/src/newgrf_spritegroup.h index f95dd3748..f65a7f5c4 100644 --- a/src/newgrf_spritegroup.h +++ b/src/newgrf_spritegroup.h @@ -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. diff --git a/src/newgrf_station.h b/src/newgrf_station.h index fe924d51d..82656ec04 100644 --- a/src/newgrf_station.h +++ b/src/newgrf_station.h @@ -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. */ |