aboutsummaryrefslogtreecommitdiffstats
path: root/Lua/src
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-05-16 13:37:33 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-05-16 13:37:33 +0000
commitf64f21da0aa5838fafa6a5a4a16b0428c69d36a4 (patch)
tree150432e1ef14c70ebfc7b055c42eeddc90d71387 /Lua/src
parentb2d499107c616ed7a5c68cee205a8cdde7f16149 (diff)
downloadusdx-f64f21da0aa5838fafa6a5a4a16b0428c69d36a4.tar.gz
usdx-f64f21da0aa5838fafa6a5a4a16b0428c69d36a4.tar.xz
usdx-f64f21da0aa5838fafa6a5a4a16b0428c69d36a4.zip
fixed winner string in party new round screen
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1737 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Lua/src')
-rw-r--r--Lua/src/base/UParty.pas6
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;