From cf8f6571fc7fc9d6cd46bd0651bfdf65c79b99fc Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 31 Aug 2010 16:17:22 +0000 Subject: (svn r20706) -Fix (r20664): land slope check wasn't called when it should be called --- src/object_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp index f10ed4f40..bd9f6b184 100644 --- a/src/object_cmd.cpp +++ b/src/object_cmd.cpp @@ -179,7 +179,7 @@ CommandCost CmdBuildObject(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 } /* So, now the surface is checked... check the slope of said surface. */ - if (spec->callback_mask & CBM_OBJ_SLOPE_CHECK) { + if (HasBit(spec->callback_mask, CBM_OBJ_SLOPE_CHECK)) { TILE_AREA_LOOP(t, ta) { TileIndex diff = t - tile; uint16 callback = GetObjectCallback(CBID_OBJECT_LAND_SLOPE_CHECK, GetTileSlope(t, NULL), TileY(diff) << 4 | TileX(diff), spec, NULL, t); -- cgit v1.2.3-70-g09d2