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:
parent
f212c8221d
commit
a87363c0f1
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user