diff options
Diffstat (limited to 'Lua/src/base')
-rw-r--r-- | Lua/src/base/UParty.pas | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lua/src/base/UParty.pas b/Lua/src/base/UParty.pas index d7392d4b..856f4f40 100644 --- a/Lua/src/base/UParty.pas +++ b/Lua/src/base/UParty.pas @@ -559,6 +559,10 @@ begin if (CurRound >= 0) then begin GenScores; + + // set no winner if plugin did not set a winner + if (Rounds[CurRound].Winner = -1) then + Rounds[CurRound].Winner := 0; end; // increase round counter @@ -577,8 +581,6 @@ begin // select player for I := 0 to High(Teams) do Teams[I].NextPlayer := GetRandomPlayer(I); - - Rounds[CurRound].Winner := 0; //< reset winner end; end; |