tunnelbridge_cmd.c
changeset 2085 ae9e92ffe168
parent 2049 ad0d49c916d4
child 2133 098c9da8292e
--- a/tunnelbridge_cmd.c	Sat Jul 16 20:58:04 2005 +0000
+++ b/tunnelbridge_cmd.c	Sat Jul 16 23:47:37 2005 +0000
@@ -88,7 +88,7 @@
  */
 static uint32 CheckBridgeSlope(uint direction, uint tileh, bool is_start_tile)
 {
-	if (!(tileh & 0x10)) {	// disable building on very steep slopes
+	if (!IsSteepTileh(tileh)) {	// disable building on very steep slopes
 
 		if (is_start_tile) {
 			/* check slope at start tile
@@ -981,7 +981,7 @@
 		p = _tileh_bits[(image & 1) * 2 + (ti->map5&0x01)];
 		front_height = ti->z + ((ti->tileh & p[0])?8:0);
 		back_height = ti->z + ((ti->tileh & p[1])?8:0);
-		if (ti->tileh & 0x10) {
+		if (IsSteepTileh(ti->tileh)) {
 			if (!(ti->tileh & p[2])) front_height += 8;
 			if (!(ti->tileh & p[3])) back_height += 8;
 		}