mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Fix battle start when hero has tactics and no battle sounds mod is on
This commit is contained in:
parent
81164100da
commit
a9808a6541
@ -108,11 +108,14 @@ BattleInterface::BattleInterface(const CCreatureSet *army1, const CCreatureSet *
|
||||
}
|
||||
};
|
||||
|
||||
CCS->soundh->setCallback(battleIntroSoundChannel, onIntroPlayed);
|
||||
|
||||
GH.pushInt(windowObject);
|
||||
windowObject->blockUI(true);
|
||||
windowObject->updateQueue();
|
||||
|
||||
if (battleIntroSoundChannel != -1)
|
||||
CCS->soundh->setCallback(battleIntroSoundChannel, onIntroPlayed);
|
||||
else
|
||||
onIntroSoundPlayed();
|
||||
}
|
||||
|
||||
void BattleInterface::onIntroSoundPlayed()
|
||||
@ -228,11 +231,6 @@ void BattleInterface::stackAttacking( const StackAttackInfo & attackInfo )
|
||||
|
||||
void BattleInterface::newRoundFirst( int round )
|
||||
{
|
||||
if (battleIntroSoundChannel == -1 &&
|
||||
getAnimationCondition(EAnimationEvents::OPENING) == true)
|
||||
{
|
||||
onIntroSoundPlayed();
|
||||
}
|
||||
waitForAnimationCondition(EAnimationEvents::OPENING, false);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user