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:
Jason Felds
2012-05-21 18:28:15 -04:00
parent 96969ce4e8
commit 3148121f1f
@@ -48,8 +48,9 @@ function InitScoreKeepers(p1Mode, p2Mode)
for k,v in pairs(intab) do for k,v in pairs(intab) do
if not ScoringModes[v] then if not ScoringModes[v] then
--SPOILER: UndocumentedFeature crashes the game intentionally. --SPOILER: UndocumentedFeature crashes the game intentionally.
UndocumentedFeature(k.."'s scoring mode \""..v.."\" doesn't exist.") -- UndocumentedFeature(k.."'s scoring mode \""..v.."\" doesn't exist.")
end -- UndocumentedFeature(k.."'s scoring mode doesn't exist.")
else
ReadiedScoreKeepers[k] = coroutine.create(ScoringModes[v]) ReadiedScoreKeepers[k] = coroutine.create(ScoringModes[v])
--call each scoring mode one time in init mode --call each scoring mode one time in init mode
checks={coroutine.resume(ReadiedScoreKeepers[k],nil,STATSMAN:GetCurStageStats():GetPlayerStageStats("PlayerNumber_"..k), "PlayerNumber_"..k, "init")} 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
end end
end
return true return true
end end