summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-06-01 15:01:54 +0000
committerfrosch <frosch@openttd.org>2009-06-01 15:01:54 +0000
commit0d782b0f96f01e7d9ac02120b8e5ca84fe9bc9f2 (patch)
tree9247ff8c6b63c62820520758d14a26b3a47f973e /src/town_cmd.cpp
parentda57fe63f348a1f4628b9f17df171f4c54f0d2e7 (diff)
downloadopenttd-0d782b0f96f01e7d9ac02120b8e5ca84fe9bc9f2.tar.xz
(svn r16498) -Codechange: Remove hardly used HASBITS.
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index dc42786cb..6bf8c7941 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -959,7 +959,7 @@ static bool GrowTownWithBridge(const Town *t, const TileIndex tile, const DiagDi
/* Make sure the direction is compatible with the slope.
* Well we check if the slope has an up bit set in the
* reverse direction. */
- if (HASBITS(slope, InclinedSlope(bridge_dir))) return false;
+ if (slope & InclinedSlope(bridge_dir)) return false;
/* Assure that the bridge is connectable to the start side */
if (!(GetTownRoadBits(TileAddByDiagDir(tile, ReverseDiagDir(bridge_dir))) & DiagDirToRoadBits(bridge_dir))) return false;
@@ -2121,7 +2121,7 @@ static bool BuildTownHouse(Town *t, TileIndex tile)
SetBit(oneof, TOWN_HAS_STADIUM);
}
- if (HASBITS(t->flags12, oneof)) continue;
+ if (t->flags12 & oneof) continue;
/* Make sure there is no slope? */
bool noslope = (hs->building_flags & TILE_NOT_SLOPED) != 0;