X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fgamemodes%2Fgamemode%2Flms%2Fsv_lms.qc;h=9a210262b68e80b8b1c8b323a81739f8f8111f94;hp=0357069988e54626982e46ab2556bde2e8633be8;hb=80fbd518b7cbd82c02fee4d7fcf7d43853d6dd97;hpb=d93f6b03b51f1c9da2456680c988423b5bbcf91a diff --git a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc index 035706998..9a210262b 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; } }