[sm130score] Restore old Course scoring for now.

This can be lua-ized later.
This commit is contained in:
Jason Felds
2011-04-12 02:29:57 -04:00
parent 0689d897ea
commit 063208eea8
3 changed files with 11 additions and 2 deletions
@@ -1,10 +1,11 @@
local t = Def.ActorFrame {}; local t = Def.ActorFrame {};
if( not GAMESTATE:IsCourseMode() ) then
t[#t+1] = Def.Actor{ t[#t+1] = Def.Actor{
JudgmentMessageCommand = function(self, params) JudgmentMessageCommand = function(self, params)
Scoring[GetUserPref("UserPrefScoringMode")](params, Scoring[GetUserPref("UserPrefScoringMode")](params,
STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player)) STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player))
end; end;
}; };
end;
return t; return t;
@@ -168,12 +168,13 @@ t[#t+1] = Def.ActorFrame {
}; };
CreateStops(); CreateStops();
}; };
if( not GAMESTATE:IsCourseMode() ) then
t[#t+1] = Def.Actor{ t[#t+1] = Def.Actor{
JudgmentMessageCommand = function(self, params) JudgmentMessageCommand = function(self, params)
Scoring[GetUserPref("UserPrefScoringMode")](params, Scoring[GetUserPref("UserPrefScoringMode")](params,
STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player)) STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player))
end; end;
}; };
end;
return t return t
+7
View File
@@ -263,6 +263,13 @@ void ScoreKeeperNormal::AddTapScore( TapNoteScore tns )
void ScoreKeeperNormal::AddHoldScore( HoldNoteScore hns ) void ScoreKeeperNormal::AddHoldScore( HoldNoteScore hns )
{ {
if( GAMESTATE->IsCourseMode() )
{
if( hns == HNS_Held )
AddScoreInternal( TNS_W1 );
else if ( hns == HNS_LetGo )
AddScoreInternal( TNS_W4 ); // required for subtractive score display to work properly.
}
} }
void ScoreKeeperNormal::AddTapRowScore( TapNoteScore score, const NoteData &nd, int iRow ) void ScoreKeeperNormal::AddTapRowScore( TapNoteScore score, const NoteData &nd, int iRow )