From 1ab628e8ad6c85c8f1b562f10480253ee3e622b7 Mon Sep 17 00:00:00 2001 From: whiteshark0 Date: Fri, 11 Dec 2009 17:34:54 +0000 Subject: 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 --- Lua/src/base/UParty.pas | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Lua/src/base/UParty.pas') 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; -- cgit v1.2.3