# HG changeset patch # User Adam Kaminski # Date 1623612972 14400 # Sun Jun 13 15:36:12 2021 -0400 # Node ID b0caddefd7a9cf9848aa7f1e3c44ff56bacded55 # Parent 9bb8284491311895824354148a19a867cdf765b3 Made a slight change on how the champion string is built; frag count is also taken into consideration in case both duelers have at least one win during the results sequence. diff -r 9bb828449131 -r b0caddefd7a9 src/scoreboard.cpp --- a/src/scoreboard.cpp Mon Jun 07 08:41:59 2021 -0400 +++ b/src/scoreboard.cpp Sun Jun 13 15:36:12 2021 -0400 @@ -1726,6 +1726,8 @@ if ( duel && duellimit ) { ULONG ulWinner = MAXPLAYERS; + LONG lHighestFrags = LONG_MIN; + const bool bInResults = GAMEMODE_IsGameInResultSequence( ); bool bDraw = true; // [TL] The number of duels left is the maximum number of duels less the number of duels fought. @@ -1736,8 +1738,21 @@ { if (( playeringame[ulIdx] ) && ( players[ulIdx].ulWins > 0 )) { - ulWinner = ulIdx; - break; + // [AK] In case both duelers have at least one win during the results sequence the, + // champion should be the one with the higher frag count. + if ( bInResults ) + { + if ( players[ulIdx].fragcount > lHighestFrags ) + { + ulWinner = ulIdx; + lHighestFrags = players[ulIdx].fragcount; + } + } + else + { + ulWinner = ulIdx; + break; + } } }