--- a/station_cmd.c Thu Nov 10 17:21:05 2005 +0000
+++ b/station_cmd.c Fri Nov 11 20:34:16 2005 +0000
@@ -903,7 +903,7 @@
}
// 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 @@
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 @@
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);