From d8f11a452fcb04cd473385e46c1c77ab7cc6893f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 2 Mar 2007 21:53:45 +0000 Subject: [PATCH] update JudgmentTransformCommand --- stepmania/Themes/default/Scripts/Other.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stepmania/Themes/default/Scripts/Other.lua b/stepmania/Themes/default/Scripts/Other.lua index 2b86c3d1aa..d110ac5a0b 100644 --- a/stepmania/Themes/default/Scripts/Other.lua +++ b/stepmania/Themes/default/Scripts/Other.lua @@ -8,21 +8,21 @@ function FormatNumSongsPlayed( num ) return s end -function JudgmentTransformCommand( self, pn, mp, iEnabledPlayerIndex, iNumEnabledPlayers, bUsingBothSides, bReverse, bCentered ) +function JudgmentTransformCommand( self, params ) local x = 0 local y = -30 - if bReverse then y = y * -1 end + if params.bReverse then y = y * -1 end -- This makes no sense and wasn't even being used due to misspelling. -- if bCentered then y = y * 2 end self:x( x ) self:y( y ) end -function JudgmentTransformSharedCommand( self, pn, mp, iEnabledPlayerIndex, iNumEnabledPlayers, bUsingBothSides, bReverse, bCentered ) +function JudgmentTransformSharedCommand( self, params ) local x = -120 local y = -30 - if bReverse then y = 30 end - if pn == 1 then x = 120 end + if params.bReverse then y = 30 end + if params.Player == PLAYER_1 then x = 120 end self:x( x ) self:y( y ) end