From ee6a478c8d12874a73114ff61919bf870e4dd475 Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Sat, 26 Mar 2022 00:03:23 +0300 Subject: [PATCH] player: fix frag decrement on suicide --- src/game/g_player.pas | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 -- 2.29.2