(svn r17596) -Codechange: constify some tables
This commit is contained in:
@@ -53,7 +53,7 @@ void ResetRailTypes()
|
||||
memcpy(_railtypes, _original_railtypes, sizeof(_original_railtypes));
|
||||
}
|
||||
|
||||
const byte _track_sloped_sprites[14] = {
|
||||
static const byte _track_sloped_sprites[14] = {
|
||||
14, 15, 22, 13,
|
||||
0, 21, 17, 12,
|
||||
23, 0, 18, 20,
|
||||
@@ -2292,7 +2292,7 @@ static void GetTileDesc_Track(TileIndex tile, TileDesc *td)
|
||||
break;
|
||||
|
||||
case RAIL_TILE_SIGNALS: {
|
||||
const StringID signal_type[6][6] = {
|
||||
static const StringID signal_type[6][6] = {
|
||||
{
|
||||
STR_LAI_RAIL_DESCRIPTION_TRACK_WITH_NORMAL_SIGNALS,
|
||||
STR_LAI_RAIL_DESCRIPTION_TRACK_WITH_NORMAL_PRESIGNALS,
|
||||
@@ -2378,7 +2378,7 @@ static void ChangeTileOwner_Track(TileIndex tile, Owner old_owner, Owner new_own
|
||||
|
||||
static const byte _fractcoords_behind[4] = { 0x8F, 0x8, 0x80, 0xF8 };
|
||||
static const byte _fractcoords_enter[4] = { 0x8A, 0x48, 0x84, 0xA8 };
|
||||
static const signed char _deltacoord_leaveoffset[8] = {
|
||||
static const int8 _deltacoord_leaveoffset[8] = {
|
||||
-1, 0, 1, 0, /* x */
|
||||
0, 1, 0, -1 /* y */
|
||||
};
|
||||
|
Reference in New Issue
Block a user