From: terencehill Date: Sun, 3 Jul 2022 12:34:08 +0000 (+0200) Subject: LMS: fix all players declared winners in console X-Git-Tag: xonotic-v0.8.6~431 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=80fbd518b7cbd82c02fee4d7fcf7d43853d6dd97 LMS: fix all players declared winners in console --- diff --git a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc index 0357069988..9a210262b6 100644 --- a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc +++ b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc @@ -77,13 +77,13 @@ int WinningCondition_LMS() // exactly one player? ClearWinners(); - SetWinners(winning, 0); // NOTE: exactly one player is still "player", so this works out if (LMS_NewPlayerLives()) { if (totalplayed && game_starttime > 0 && time > game_starttime + autocvar_g_lms_forfeit_min_match_time) // give players time to join { GameRules_scoring_add(first_player, LMS_RANK, 1); + first_player.winning = 1; return WINNING_YES; } // game still running (that is, nobody got removed from the game by a frag yet)? then continue @@ -94,6 +94,7 @@ int WinningCondition_LMS() // a winner! // and assign him his first place GameRules_scoring_add(first_player, LMS_RANK, 1); + first_player.winning = 1; return WINNING_YES; } }