From ee15e3de13643b2d09abcc5424bf8e2d916cff75 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 13 Nov 2005 13:43:55 +0000 Subject: (svn r3172) static, const --- station_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'station_cmd.c') diff --git a/station_cmd.c b/station_cmd.c index b0c88412c..a2c4acff6 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -2082,7 +2082,7 @@ static void DrawTile_Station(TileInfo *ti) //debug("Cust-o-mized %p", statspec); if (statspec != NULL) { - Station *st = GetStation(_m[ti->tile].m2); + const Station* st = GetStation(_m[ti->tile].m2); relocation = GetCustomStationRelocation(statspec, st, 0); //debug("Relocation %d", relocation); @@ -2197,7 +2197,7 @@ static uint32 GetTileTrackStatus_Station(TileIndex tile, TransportType mode) switch (mode) { case TRANSPORT_RAIL: if (i < 8) { - const byte tile_track_status_rail[8] = { 1, 2, 1, 2, 1, 2, 1, 2 }; + static const byte tile_track_status_rail[] = { 1, 2, 1, 2, 1, 2, 1, 2 }; j = tile_track_status_rail[i]; } j += (j << 8); -- cgit v1.2.3-54-g00ecf