diff options
author | tron <tron@openttd.org> | 2005-11-13 13:43:55 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-11-13 13:43:55 +0000 |
commit | 81e5b16d7178f0ee5584201cb2f6c8e36742354f (patch) | |
tree | 385ce09aff7cf19e072a627e83e91fe8a5f3fb3b /station_cmd.c | |
parent | d97f56b4e2b6159e696128932da28b89a13a30e0 (diff) | |
download | openttd-81e5b16d7178f0ee5584201cb2f6c8e36742354f.tar.xz |
(svn r3172) static, const
Diffstat (limited to 'station_cmd.c')
-rw-r--r-- | station_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |