From: DeaDDooMER Date: Fri, 25 Mar 2022 21:03:23 +0000 (+0300) Subject: player: fix frag decrement on suicide X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=ee6a478c8d12874a73114ff61919bf870e4dd475;p=d2df-sdl.git player: fix frag decrement on suicide --- diff --git a/src/game/g_player.pas b/src/game/g_player.pas index 9aa72a8..b04cdc2 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -3381,11 +3381,15 @@ begin if SpawnerUID = FUID then begin // Ñàìîóáèëñÿ - if Srv and (gGameSettings.GameMode = GM_TDM) then - Dec(gTeamStat[FTeam].Goals); + if Srv then begin - Dec(FFrags); - FLastFrag := 0; + if gGameSettings.GameMode = GM_TDM then + Dec(gTeamStat[FTeam].Goals); + if DoFrags or (gGameSettings.GameMode = GM_TDM) then + begin + Dec(FFrags); + FLastFrag := 0; + end; end; g_Console_Add(Format(_lc[I_PLAYER_KILL_SELF], [FName]), True); end