Bläddra i källkod

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

beegee1 11 år sedan
förälder
incheckning
a87363c0f1
2 ändrade filer med 14 tillägg och 0 borttagningar
  1. 1 0
      client/GUIClasses.cpp
  2. 13 0
      client/battle/CBattleAnimations.cpp

+ 1 - 0
client/GUIClasses.cpp

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

+ 13 - 0
client/battle/CBattleAnimations.cpp

@@ -834,6 +834,19 @@ void CShootingAnimation::nextFrame()
 
 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();
 	delete this;
 }