From 3c92924b9860b18884505276844f5b127fc37621 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 23 Sep 2024 17:57:19 +0100 Subject: [PATCH] Fix ddf1510a23: House animation random data flag ignored. 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)