summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-31 16:17:22 +0000
committerrubidium <rubidium@openttd.org>2010-08-31 16:17:22 +0000
commitcf8f6571fc7fc9d6cd46bd0651bfdf65c79b99fc (patch)
tree2578b845b7986a76c13181c655b7dc6d25f5450b /src
parent0068c02244236506d7acf3caa74c144cb28ec203 (diff)
downloadopenttd-cf8f6571fc7fc9d6cd46bd0651bfdf65c79b99fc.tar.xz
(svn r20706) -Fix (r20664): land slope check wasn't called when it should be called
Diffstat (limited to 'src')
-rw-r--r--src/object_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
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);