1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-27 21:49:10 +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
commit 654f5a9100
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)
{