"pump/default: move player variable to outside of function to work for split timing"

sourced from hanubeki: http://code.google.com/r/hanubeki-modified-sm-ssc/source/detail?r=ca5903590a0decbaca4c17194cf2efe025d3ce4a
This commit is contained in:
AJ Kelly
2012-05-02 19:13:22 -05:00
parent 4e24ead887
commit 41d42f9561
+2 -1
View File
@@ -1,7 +1,8 @@
local player = Var "Player" or GAMESTATE:GetMasterPlayerNumber()
local function Beat(self)
-- too many locals
local this = self:GetChildren()
local player = Var "Player" or GAMESTATE:GetMasterPlayerNumber()
local playerstate = GAMESTATE:GetPlayerState( player )
local songposition = playerstate:GetSongPosition() -- GAMESTATE:GetSongPosition()