From c2ddf8e06a566f3ecc9ae9ab3dc92ad61b72e405 Mon Sep 17 00:00:00 2001 From: PolishUser Date: Sat, 28 Sep 2024 23:54:51 +0200 Subject: [PATCH] Add 'newBuilding' sound upon hero recruitment in towns --- client/CPlayerInterface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/CPlayerInterface.cpp b/client/CPlayerInterface.cpp index 162aada4c..d15cabb2e 100644 --- a/client/CPlayerInterface.cpp +++ b/client/CPlayerInterface.cpp @@ -427,6 +427,8 @@ void CPlayerInterface::heroCreated(const CGHeroInstance * hero) EVENT_HANDLER_CALLED_BY_CLIENT; localState->addWanderingHero(hero); adventureInt->onHeroChanged(hero); + if(castleInt) + CCS->soundh->playSound(soundBase::newBuilding); } void CPlayerInterface::openTownWindow(const CGTownInstance * town) {