1
0
Fork 0

Add: [NewGRF] Provide random bits in var10 of house callback 1C 'construction stage changed'. (#14095)

pull/14115/head
frosch 2025-04-26 15:58:44 +02:00 committed by GitHub
parent 55753795bf
commit 398524e49a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -542,7 +542,7 @@ void TriggerHouseAnimation_ConstructionStageChanged(TileIndex tile, bool first_c
const HouseSpec *hs = HouseSpec::Get(GetHouseType(tile));
if (hs->callback_mask.Test(HouseCallbackMask::AnimationTriggerConstructionStageChanged)) {
HouseAnimationBase::ChangeAnimationFrame(CBID_HOUSE_ANIMATION_TRIGGER_CONSTRUCTION_STAGE_CHANGED, hs, Town::GetByTile(tile), tile, 0, first_call ? 1 : 0);
HouseAnimationBase::ChangeAnimationFrame(CBID_HOUSE_ANIMATION_TRIGGER_CONSTRUCTION_STAGE_CHANGED, hs, Town::GetByTile(tile), tile, Random(), first_call ? 1 : 0);
}
}