mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-20 04:59:11 +00:00
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.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user