1
0
Fork 0

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.
pull/12963/head
Peter Nelson 2024-09-23 17:57:19 +01:00
parent 856ee2aaca
commit 3c92924b98
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 1 deletions

View File

@ -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)