diff options
author | skidd13 <skidd13@openttd.org> | 2007-11-20 13:35:54 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-11-20 13:35:54 +0000 |
commit | eeaa348f8bfafae1a6e56b857a97d9d23577dcac (patch) | |
tree | 51f15a2e52f58ea4446467086c5441cebe4324bf /src/town_cmd.cpp | |
parent | b8885630aa9942ea924ffb6eeabc266140485435 (diff) | |
download | openttd-eeaa348f8bfafae1a6e56b857a97d9d23577dcac.tar.xz |
(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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]; |