the right way
This commit is contained in:
@@ -11,7 +11,7 @@ local function CreateOldScoringShim(name)
|
|||||||
judg,pss,player,mode=coroutine.yield()
|
judg,pss,player,mode=coroutine.yield()
|
||||||
while true do
|
while true do
|
||||||
if mode=="update" then
|
if mode=="update" then
|
||||||
func(judg,pss)
|
if not judg.TapNoteScore:find("Mine") then func(judg,pss) end
|
||||||
judg,pss,player,mode=coroutine.yield(pss:GetScore(),pss:GetCurMaxScore())
|
judg,pss,player,mode=coroutine.yield(pss:GetScore(),pss:GetCurMaxScore())
|
||||||
elseif mode=="finalize" then
|
elseif mode=="finalize" then
|
||||||
return pss:GetScore(),pss:GetCurMaxScore()
|
return pss:GetScore(),pss:GetCurMaxScore()
|
||||||
@@ -139,8 +139,6 @@ end
|
|||||||
local OldCallShimMt={
|
local OldCallShimMt={
|
||||||
__index=function(t,k,v)
|
__index=function(t,k,v)
|
||||||
return function(judg, _)
|
return function(judg, _)
|
||||||
--STUPID: don't bother if it's a mine.
|
|
||||||
if judg.TapNoteScore:find("Mine") then return end
|
|
||||||
--sacrifice some efficiency for reliability
|
--sacrifice some efficiency for reliability
|
||||||
InitScoreKeepers(ArgsIfPlayerJoinedOrNil(v))
|
InitScoreKeepers(ArgsIfPlayerJoinedOrNil(v))
|
||||||
UpdateScoreKeepers(judg)
|
UpdateScoreKeepers(judg)
|
||||||
|
|||||||
Reference in New Issue
Block a user