diff options
author | rubidium <rubidium@openttd.org> | 2010-08-31 16:17:22 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-31 16:17:22 +0000 |
commit | cf8f6571fc7fc9d6cd46bd0651bfdf65c79b99fc (patch) | |
tree | 2578b845b7986a76c13181c655b7dc6d25f5450b | |
parent | 0068c02244236506d7acf3caa74c144cb28ec203 (diff) | |
download | openttd-cf8f6571fc7fc9d6cd46bd0651bfdf65c79b99fc.tar.xz |
(svn r20706) -Fix (r20664): land slope check wasn't called when it should be called
-rw-r--r-- | src/object_cmd.cpp | 2 |
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); |