From eeaa348f8bfafae1a6e56b857a97d9d23577dcac Mon Sep 17 00:00:00 2001 From: skidd13 Date: Tue, 20 Nov 2007 13:35:54 +0000 Subject: (svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style --- src/town_cmd.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/town_cmd.cpp') diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 76677f9e2..6c4f6a94a 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -1725,9 +1725,9 @@ static void DoBuildTownHouse(Town *t, TileIndex tile) /* Special houses that there can be only one of. */ if (hs->building_flags & BUILDING_IS_CHURCH) { - SETBIT(oneof, TOWN_HAS_CHURCH); + SetBit(oneof, TOWN_HAS_CHURCH); } else if (hs->building_flags & BUILDING_IS_STADIUM) { - SETBIT(oneof, TOWN_HAS_STADIUM); + SetBit(oneof, TOWN_HAS_STADIUM); } else { oneof = 0; } @@ -2012,7 +2012,7 @@ static void TownActionBuildStatue(Town* t) TileIndex tile = t->xy; if (CircularTileSearch(tile, 9, SearchTileForStatue, t->index)) - SETBIT(t->statues, _current_player); // Once found and built, "inform" the Town + SetBit(t->statues, _current_player); // Once found and built, "inform" the Town } static void TownActionFundBuildings(Town* t) @@ -2020,7 +2020,7 @@ static void TownActionFundBuildings(Town* t) /* Build next tick */ t->grow_counter = 1; /* If we were not already growing */ - SETBIT(t->flags12, TOWN_IS_FUNDED); + SetBit(t->flags12, TOWN_IS_FUNDED); /* And grow for 3 months */ t->fund_buildings_months = 3; } @@ -2177,7 +2177,7 @@ static void UpdateTownGrowRate(Town *t) if (m <= t->grow_counter) t->grow_counter = m; - SETBIT(t->flags12, TOWN_IS_FUNDED); + SetBit(t->flags12, TOWN_IS_FUNDED); } static void UpdateTownAmounts(Town *t) @@ -2267,7 +2267,7 @@ void ChangeTownRating(Town *t, int add, int max) return; } - SETBIT(t->have_ratings, _current_player); + SetBit(t->have_ratings, _current_player); rating = t->ratings[_current_player]; -- cgit v1.2.3-54-g00ecf