attempt to curb scoring issues by only triggering JudgmentMessageCommand if TapNoteScore is valid

This commit is contained in:
AJ Kelly
2011-09-25 12:06:15 -05:00
parent 3548810ad5
commit b44798dd51
2 changed files with 14 additions and 4 deletions
@@ -3,8 +3,13 @@ local t = Def.ActorFrame {};
if( not GAMESTATE:IsCourseMode() ) then
t[#t+1] = Def.Actor{
JudgmentMessageCommand = function(self, params)
Scoring[GetUserPref("UserPrefScoringMode")](params,
STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player))
if params.TapNoteScore and
params.TapNoteScore ~= 'TapNoteScore_Invalid' and
params.TapNoteScore ~= 'TapNoteScore_None'
then
Scoring[GetUserPref("UserPrefScoringMode")](params,
STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player))
end
end;
};
end;
@@ -204,8 +204,13 @@ t[#t+1] = Def.ActorFrame {
if( not GAMESTATE:IsCourseMode() ) then
t[#t+1] = Def.Actor{
JudgmentMessageCommand = function(self, params)
Scoring[GetUserPref("UserPrefScoringMode")](params,
STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player))
if params.TapNoteScore and
params.TapNoteScore ~= 'TapNoteScore_Invalid' and
params.TapNoteScore ~= 'TapNoteScore_None'
then
Scoring[GetUserPref("UserPrefScoringMode")](params,
STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player))
end
end;
};
end;