be safer.

This commit is contained in:
Flameshadowxeroshin
2011-08-28 16:55:58 +00:00
parent 9a9d427902
commit 12fb90f9d3
+2 -2
View File
@@ -321,6 +321,6 @@ for v in ivalues(DisabledScoringModes) do r[v] = nil end
Scoring = {}
setmetatable(Scoring, { __index = function(...) return function(params,pss)
--put any code here that should run before every scoring function
if not GAMESTATE:IsHumanPlayer(params.Player) and r[key]
then return r[key](...) end
if not GAMESTATE:IsHumanPlayer(params.Player) and type(r[key]) == "function" then
return r[key](...) end
end }