Hack: stop lua error and crash on "fixing".
v can't be concatenated: it's a boolean. Anyone more versed in lua want to take a look?
This commit is contained in:
@@ -48,8 +48,9 @@ function InitScoreKeepers(p1Mode, p2Mode)
|
||||
for k,v in pairs(intab) do
|
||||
if not ScoringModes[v] then
|
||||
--SPOILER: UndocumentedFeature crashes the game intentionally.
|
||||
UndocumentedFeature(k.."'s scoring mode \""..v.."\" doesn't exist.")
|
||||
end
|
||||
-- UndocumentedFeature(k.."'s scoring mode \""..v.."\" doesn't exist.")
|
||||
-- UndocumentedFeature(k.."'s scoring mode doesn't exist.")
|
||||
else
|
||||
ReadiedScoreKeepers[k] = coroutine.create(ScoringModes[v])
|
||||
--call each scoring mode one time in init mode
|
||||
checks={coroutine.resume(ReadiedScoreKeepers[k],nil,STATSMAN:GetCurStageStats():GetPlayerStageStats("PlayerNumber_"..k), "PlayerNumber_"..k, "init")}
|
||||
@@ -75,6 +76,7 @@ function InitScoreKeepers(p1Mode, p2Mode)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user