From f40e0a454cb9d155d9e9a4d8313998b234750e8e Mon Sep 17 00:00:00 2001 From: Rafael Barreto Date: Mon, 24 May 2010 20:25:57 +0000 Subject: [PATCH] hitsound git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5039 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clientgame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index e97aa34c..ab9c8821 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -634,9 +634,9 @@ void dodamage(int damage, playerent *pl, playerent *actor, bool gib, bool local) pl->respawnoffset = pl->lastpain = lastmillis; // playerent *h = local ? player1 : updatefollowplayer(0); - if(/*actor==h && pl!=actor*/ pl == player1) // FIXME + if(/*actor==h && pl!=actor*/ actor == player1) // FIXME { - if(hitsound && lasthit != lastmillis) audiomgr.playsound(S_HITSOUND, SP_LOW); + if(hitsound && lasthit != lastmillis) audiomgr.playsound(S_HITSOUND, SP_HIGH); lasthit = lastmillis; }