From e60c5f30a3427d071770ee3d21488d9ee46a002d Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 23 Sep 2024 18:18:28 +0100 Subject: [PATCH] Fix ddf1510a23: House animation random data flag ignored. (#12963) In the refactor to unified tile animation code, the test for `CALLBACK_1A_RANDOM_BITS` incorrectly got changed to a `HasBit()` test preventing it from working. Use `HasFlag()` instead. --- src/newgrf_house.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index 5cc41c6049..ca4e771dd1 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -597,7 +597,7 @@ void AnimateNewHouseTile(TileIndex tile) const HouseSpec *hs = HouseSpec::Get(GetHouseType(tile)); if (hs == nullptr) return; - HouseAnimationBase::AnimateTile(hs, Town::GetByTile(tile), tile, HasBit(hs->extra_flags, CALLBACK_1A_RANDOM_BITS)); + HouseAnimationBase::AnimateTile(hs, Town::GetByTile(tile), tile, HasFlag(hs->extra_flags, CALLBACK_1A_RANDOM_BITS)); } void AnimateNewHouseConstruction(TileIndex tile)