mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-17 20:58:07 +02:00
Add 'newBuilding' sound upon hero recruitment in towns
This commit is contained in:
parent
658c359bc7
commit
c2ddf8e06a
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user