update JudgmentTransformCommand

This commit is contained in:
Glenn Maynard
2007-03-02 21:53:45 +00:00
parent e2c82a665c
commit d8f11a452f
+5 -5
View File
@@ -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