mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-07 00:58:39 +02:00
Do not play embark/disembar sound during enemy turn
This commit is contained in:
@ -327,7 +327,7 @@ void CPlayerInterface::heroMoved(const TryMoveHero & details, bool verbose)
|
|||||||
adventureInt->infoBar->requestPopAll();
|
adventureInt->infoBar->requestPopAll();
|
||||||
if (details.result == TryMoveHero::EMBARK || details.result == TryMoveHero::DISEMBARK)
|
if (details.result == TryMoveHero::EMBARK || details.result == TryMoveHero::DISEMBARK)
|
||||||
{
|
{
|
||||||
if (hero->getRemovalSound())
|
if(hero->getRemovalSound() && hero->tempOwner == playerID)
|
||||||
CCS->soundh->playSound(hero->getRemovalSound().get());
|
CCS->soundh->playSound(hero->getRemovalSound().get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user