don't count suicides as teamkills

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7245 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2013-02-21 05:10:04 +00:00
parent c924a614e2
commit 2644841f31
+1 -1
View File
@@ -913,7 +913,7 @@ void dokill(playerent *pl, playerent *act, bool gib, int gun)
if(pl == act || isteam(pl->team, act->team))
{
act->tks++;
if(pl != act) act->tks++;
if(!m_mp(gamemode)) act->frags--;
}
else if(!m_mp(gamemode)) act->frags += ( gib && gun != GUN_GRENADE && gun != GUN_SHOTGUN) ? 2 : 1;