anticheats compatibility: fixing the false damage effect (the player will only see blood if the server accepts the damage)...

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5470 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-07-28 18:55:42 +00:00
parent 0990225084
commit 7923f31693
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -646,6 +646,8 @@ void dodamage(int damage, playerent *pl, playerent *actor, bool gib, bool local)
lasthit = lastmillis;
}
damageeffect(damage, pl);
if(local) damage = pl->dodamage(damage);
else if(actor==player1) return;
@@ -655,7 +657,6 @@ void dodamage(int damage, playerent *pl, playerent *actor, bool gib, bool local)
damageblend(damage);
pl->damageroll(damage);
}
damageeffect(damage, pl);
if(pl->health<=0) { if(local) dokill(pl, actor, gib, actor->weaponsel->type); }
else if(pl==player1) audiomgr.playsound(S_PAIN6, SP_HIGH);