mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-10 22:31:40 +02:00
Add 'newBuilding' sound upon hero recruitment in towns
This commit is contained in:
@@ -427,6 +427,8 @@ void CPlayerInterface::heroCreated(const CGHeroInstance * hero)
|
|||||||
EVENT_HANDLER_CALLED_BY_CLIENT;
|
EVENT_HANDLER_CALLED_BY_CLIENT;
|
||||||
localState->addWanderingHero(hero);
|
localState->addWanderingHero(hero);
|
||||||
adventureInt->onHeroChanged(hero);
|
adventureInt->onHeroChanged(hero);
|
||||||
|
if(castleInt)
|
||||||
|
CCS->soundh->playSound(soundBase::newBuilding);
|
||||||
}
|
}
|
||||||
void CPlayerInterface::openTownWindow(const CGTownInstance * town)
|
void CPlayerInterface::openTownWindow(const CGTownInstance * town)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user