diff src/town_cmd.cpp @ 13508:f7e05f44c9be draft

(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
author rubidium <rubidium@openttd.org>
date Mon, 09 Nov 2009 09:59:35 +0000 (2009-11-09)
parents f2535c5098a0
children 6093f71745bf
line wrap: on
line diff
--- 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 @@
 }
 
 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)
 {