bug fix: hitsound

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5027 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-05-24 00:00:35 +00:00
parent 2c0801e65b
commit 309f0644fa
2 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -621,10 +621,10 @@ 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)
playerent *h = local ? player1 : updatefollowplayer(0);
if(/*actor==h && pl!=actor*/ pl == player1)
{
if(hitsound && lasthit != lastmillis) audiomgr.playsound(S_HITSOUND);
if(hitsound && lasthit != lastmillis) audiomgr.playsound(S_HITSOUND, SP_LOW);
lasthit = lastmillis;
}