diff options
author | rubidium <rubidium@openttd.org> | 2009-11-09 09:59:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-09 09:59:35 +0000 |
commit | c2221885f488b9a7ca52b11e621582d4c60ab80d (patch) | |
tree | b793601f63728bb573ffd9825355792c89d7e315 /src/newgrf.cpp | |
parent | 37027467567dd0b75bbb932cdab87da3ff24dedd (diff) | |
download | openttd-c2221885f488b9a7ca52b11e621582d4c60ab80d.tar.xz |
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index caa30ebb4..3da5acec5 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -65,7 +65,7 @@ static int _skip_sprites; // XXX static uint _file_index; // XXX static GRFFile *_cur_grffile; -GRFFile *_first_grffile; +static GRFFile *_first_grffile; static SpriteID _cur_spriteid; static GrfLoadingStage _cur_stage; static uint32 _nfo_line; @@ -132,7 +132,7 @@ struct GRFLocation { static std::map<GRFLocation, SpriteID> _grm_sprites; typedef std::map<GRFLocation, byte*> GRFLineToSpriteOverride; -GRFLineToSpriteOverride _grf_line_to_action6_sprite_override; +static GRFLineToSpriteOverride _grf_line_to_action6_sprite_override; /** DEBUG() function dedicated to newGRF debugging messages * Function is essentialy the same as DEBUG(grf, severity, ...) with the @@ -255,7 +255,7 @@ static void ClearTemporaryNewGRFData(GRFFile *gf) typedef std::map<StringID *, uint32> StringIDToGRFIDMapping; -StringIDToGRFIDMapping _string_to_grf_mapping; +static StringIDToGRFIDMapping _string_to_grf_mapping; /** Used when setting an object's property to map to the GRF's strings * while taking in consideration the "drift" between TTDPatch string system and OpenTTD's one |