From 2644841f315b6dc348d57945781bb3d76bfad920 Mon Sep 17 00:00:00 2001 From: Bukz Date: Thu, 21 Feb 2013 05:10:04 +0000 Subject: [PATCH] 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 --- source/src/clientgame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index 11c83054..718b6826 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -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;