1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Merge pull request #4691 from PolishUser/hero-recruitment-sound

Add 'newBuilding' sound upon hero recruitment in towns
This commit is contained in:
Ivan Savenko
2024-10-01 15:28:33 +03:00
committed by GitHub

View File

@@ -420,6 +420,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)
{