From 87caeb6919f5b34ef39193b984e78ef11509d8b9 Mon Sep 17 00:00:00 2001 From: frosch Date: Thu, 24 Apr 2025 18:00:19 +0200 Subject: [PATCH] Add: [NewGRF] Provide random bits in var10 of house callback 1C 'construction stage changed'. --- 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 0afa5ddd74..52cb437590 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -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); } }