diff src/town_cmd.cpp @ 12089:482bdd64bbe8 draft

(svn r16498) -Codechange: Remove hardly used HASBITS.
author frosch <frosch@openttd.org>
date Mon, 01 Jun 2009 15:01:54 +0000 (2009-06-01)
parents d092f17a921d
children 6139eceff57c
line wrap: on
line diff
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -959,7 +959,7 @@
 	/* 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 @@
 			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;