summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-09 09:59:35 +0000
committerrubidium <rubidium@openttd.org>2009-11-09 09:59:35 +0000
commitc2221885f488b9a7ca52b11e621582d4c60ab80d (patch)
treeb793601f63728bb573ffd9825355792c89d7e315 /src/town_cmd.cpp
parent37027467567dd0b75bbb932cdab87da3ff24dedd (diff)
downloadopenttd-c2221885f488b9a7ca52b11e621582d4c60ab80d.tar.xz
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp9
1 files changed, 3 insertions, 6 deletions
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<const Town *, int, 4> _town_test_ratings;
+static SmallMap<const Town *, int, 4> _town_test_ratings;
void SetTownRatingTestMode(bool mode)
{