소스 검색

Add 'newBuilding' sound upon hero recruitment in towns

PolishUser 1 년 전
부모
커밋
c2ddf8e06a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      client/CPlayerInterface.cpp

+ 2 - 0
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)
 {