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
+7 -7
View File
@@ -335,13 +335,13 @@ void hit(int damage, playerent *d, playerent *at, const vec &vel, int gun, bool
{
if(d==player1 || d->type==ENT_BOT || !m_mp(gamemode)) d->hitpush(damage, vel, at, gun);
if(at==player1 && d!=player1)
{
extern int hitsound;
extern int lasthit;
if(hitsound && lasthit != lastmillis) audiomgr.playsound(S_HITSOUND);
lasthit = lastmillis;
}
// if(at!=player1 && d==player1)
// {
// extern int hitsound;
// extern int lasthit;
// if(hitsound && lasthit != lastmillis) audiomgr.playsound(S_HITSOUND);
// lasthit = lastmillis;
// }
if(!m_mp(gamemode)) dodamage(damage, d, at, gib);
else