Deal with determining whether to use Marv. timing within TNStoDP.

Use IsCourseMode.

Remove old comment.
This commit is contained in:
Glenn Maynard
2003-02-28 08:12:47 +00:00
parent c35af594c0
commit 2fa39fed8a
4 changed files with 14 additions and 23 deletions
+9 -2
View File
@@ -11,10 +11,17 @@
*/
#include "GameConstantsAndTypes.h"
#include "PrefsManager.h"
#include "GameState.h"
int TapNoteScoreToDancePoints( TapNoteScore tns, bool bOni )
/* XXX: Should this be in GAMESTATE? It's not really a constant anymore. */
int TapNoteScoreToDancePoints( TapNoteScore tns )
{
const bool bOni = GAMESTATE->IsCourseMode();
if(!PREFSMAN->m_bMarvelousTiming && tns == TNS_MARVELOUS)
tns = TNS_PERFECT;
switch( tns )
{
case TNS_MARVELOUS: return bOni ? +3 : +2;