diff options
author | smatz <smatz@openttd.org> | 2010-10-01 16:42:28 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2010-10-01 16:42:28 +0000 |
commit | 77fe95f55270cf856cbd088182fd2ea617d48bf0 (patch) | |
tree | 815b5cf915f4510e7ba8e19dbcd9bc956e7cfe75 /src/town_cmd.cpp | |
parent | 7f5f4950d7c1ffd09b1425263b202372c73c752e (diff) | |
download | openttd-77fe95f55270cf856cbd088182fd2ea617d48bf0.tar.xz |
(svn r20860) -Cleanup: remove some unused functions and variables
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index bef8301ee..d2a983ddc 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -51,8 +51,6 @@ #include "table/strings.h" #include "table/town_land.h" -static Town *_cleared_town; -static int _cleared_town_rating; TownID _new_town_id; /* Initialize the town-pool */ @@ -542,8 +540,7 @@ static CommandCost ClearTile_Town(TileIndex tile, DoCommandFlag flags) cost.AddCost(hs->GetRemovalCost()); int rating = hs->remove_rating_decrease; - _cleared_town_rating += rating; - Town *t = _cleared_town = Town::GetByTile(tile); + Town *t = Town::GetByTile(tile); if (Company::IsValidID(_current_company)) { if (rating > t->ratings[_current_company] && !(flags & DC_NO_TEST_TOWN_RATING) && !_cheats.magic_bulldozer.value) { |