diff options
author | peter1138 <peter1138@openttd.org> | 2005-11-11 20:34:16 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2005-11-11 20:34:16 +0000 |
commit | b1075ca7a43ea39cddf4ec4406f99bb5aa37a113 (patch) | |
tree | 0cfaa224bb5153de119f9d01928afb07925e0481 /station_cmd.c | |
parent | 1c867927a3a8b8c26e1758bbd1f367a4f684e084 (diff) | |
download | openttd-b1075ca7a43ea39cddf4ec4406f99bb5aa37a113.tar.xz |
(svn r3166) Constify read-only accesses of custom stations
Diffstat (limited to 'station_cmd.c')
-rw-r--r-- | station_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/station_cmd.c b/station_cmd.c index ec643fcf7..f46bd19a6 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -903,7 +903,7 @@ static inline byte *CreateMulti(byte *layout, int n, byte b) } // stolen from TTDPatch -static void GetStationLayout(byte *layout, int numtracks, int plat_len, StationSpec *spec) +static void GetStationLayout(byte *layout, int numtracks, int plat_len, const StationSpec *spec) { if (spec != NULL && spec->lengths >= plat_len && spec->platforms[plat_len - 1] >= numtracks && @@ -1033,7 +1033,7 @@ int32 CmdBuildRailroadStation(int x, int y, uint32 flags, uint32 p1, uint32 p2) TileIndexDiff tile_delta; byte *layout_ptr; StationID station_index = st->index; - StationSpec *statspec; + const StationSpec *statspec; // Now really clear the land below the station // It should never return CMD_ERROR.. but you never know ;) @@ -2139,7 +2139,7 @@ static void DrawTile_Station(TileInfo *ti) if (_m[ti->tile].m3 & 0x10) { // look for customization - StationSpec *statspec = GetCustomStation(STAT_CLASS_DFLT, _m[ti->tile].m4); + const StationSpec *statspec = GetCustomStation(STAT_CLASS_DFLT, _m[ti->tile].m4); //debug("Cust-o-mized %p", statspec); |