From c2221885f488b9a7ca52b11e621582d4c60ab80d Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 9 Nov 2009 09:59:35 +0000 Subject: (svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables --- src/town_cmd.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/town_cmd.cpp') diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 60246f370..0d2b45b71 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -50,13 +50,10 @@ #include "table/strings.h" #include "table/town_land.h" -Town *_cleared_town; -int _cleared_town_rating; +static Town *_cleared_town; +static int _cleared_town_rating; TownID _new_town_id; -uint32 _cur_town_ctr; ///< iterator through all towns in OnTick_Town -uint32 _cur_town_iter; ///< frequency iterator at the same place - /* Initialize the town-pool */ TownPool _town_pool("Town"); INSTANTIATE_POOL_METHODS(Town) @@ -2714,7 +2711,7 @@ Town *ClosestTownFromTile(TileIndex tile, uint threshold) } static bool _town_rating_test = false; -SmallMap _town_test_ratings; +static SmallMap _town_test_ratings; void SetTownRatingTestMode(bool mode) { -- cgit v1.2.3-54-g00ecf