aboutsummaryrefslogtreecommitdiffstats
path: root/Lua/src/base/UParty.pas
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-12-11 17:34:54 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-12-11 17:34:54 +0000
commit1ab628e8ad6c85c8f1b562f10480253ee3e622b7 (patch)
treed21621f68850ecd7762137e1c4387fa15731a811 /Lua/src/base/UParty.pas
parent6ec275387c320d3d9a8f5b6fe185687643565b8c (diff)
downloadusdx-1ab628e8ad6c85c8f1b562f10480253ee3e622b7.tar.gz
usdx-1ab628e8ad6c85c8f1b562f10480253ee3e622b7.tar.xz
usdx-1ab628e8ad6c85c8f1b562f10480253ee3e622b7.zip
merged trunk into lua branch
plugin loading is disabled atm because of a bug reading the files (lua may be the reason). Reading the files in usdx and passing the contents to lua may solve this git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2019 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Lua/src/base/UParty.pas10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lua/src/base/UParty.pas b/Lua/src/base/UParty.pas
index c9f89efa..e4060e95 100644
--- a/Lua/src/base/UParty.pas
+++ b/Lua/src/base/UParty.pas
@@ -195,7 +195,7 @@ type
function GetTeamRanking: AParty_TeamRanking;
{ returns a string like "Team 1 (and Team 2) win" }
- function GetWinnerString(Round: Integer): String;
+ function GetWinnerString(Round: integer): UTF8String;
destructor Destroy;
end;
@@ -238,7 +238,7 @@ uses
ULuaCore,
UDisplay,
USong,
- UMain,
+ UNote,
SysUtils;
//-------------
@@ -873,9 +873,9 @@ end;
result is name of winners of specified round.
if Round is -1 the result is name of winners of
the whole party game}
-function TPartyGame.GetWinnerString(Round: Integer): String;
+function TPartyGame.GetWinnerString(Round: integer): UTF8String;
var
- Winners: array of String;
+ Winners: array of UTF8String;
I: integer;
Ranking: AParty_TeamRanking;
begin
@@ -901,7 +901,7 @@ begin
if (Ranking[I].Rank = PR_First) and (Ranking[I].Team >= 0) and (Ranking[I].Team <= High(Teams)) then
begin
SetLength(Winners, Length(Winners) + 1);
- Winners[high(Winners)] := Teams[Ranking[I].Team].Name;
+ Winners[high(Winners)] := UTF8String(Teams[Ranking[I].Team].Name);
end;
end;