1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

- fixed mantis #783 - play sound when entering message in chat box

This commit is contained in:
beegee1 2014-06-01 18:48:40 +02:00
parent f212c8221d
commit a87363c0f1
2 changed files with 14 additions and 0 deletions

View File

@ -3939,6 +3939,7 @@ void CInGameConsole::keyPressed (const SDL_KeyboardEvent & key)
{ {
captureAllKeys = false; captureAllKeys = false;
endEnteringText(true); endEnteringText(true);
CCS->soundh->playSound("CHAT");
} }
break; break;
} }

View File

@ -834,6 +834,19 @@ void CShootingAnimation::nextFrame()
void CShootingAnimation::endAnim() void CShootingAnimation::endAnim()
{ {
// play wall hit/miss sound for catapult attack
if(!attackedStack)
{
if(catapultDamage > 0)
{
CCS->soundh->playSound("WALLHIT");
}
else
{
CCS->soundh->playSound("WALLMISS");
}
}
CAttackAnimation::endAnim(); CAttackAnimation::endAnim();
delete this; delete this;
} }