Make all nonstop courses sum to 100mil. This is more consistent, and
prevents overflow with very long (25+) courses. (patch from Steve Towle)
This commit is contained in:
@@ -38,7 +38,7 @@ protected:
|
|||||||
// bool Stats_DoublesCount;
|
// bool Stats_DoublesCount;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ScoreKeeper(const vector<Notes*>& apNotes, PlayerNumber pn) { m_PlayerNumber=pn; }
|
ScoreKeeper(PlayerNumber pn) { m_PlayerNumber=pn; }
|
||||||
virtual void DrawPrimitives() { }
|
virtual void DrawPrimitives() { }
|
||||||
|
|
||||||
virtual void OnNextSong( int iSongInCourseIndex, Notes* pNotes ) = 0; // before a song plays (called multiple times if course)
|
virtual void OnNextSong( int iSongInCourseIndex, Notes* pNotes ) = 0; // before a song plays (called multiple times if course)
|
||||||
|
|||||||
@@ -20,8 +20,8 @@
|
|||||||
#include "Course.h"
|
#include "Course.h"
|
||||||
|
|
||||||
|
|
||||||
ScoreKeeperMAX2::ScoreKeeperMAX2( const vector<Notes*>& apNotes, PlayerNumber pn_ ):
|
ScoreKeeperMAX2::ScoreKeeperMAX2( const vector<Notes*>& apNotes_, PlayerNumber pn_ ):
|
||||||
ScoreKeeper(apNotes, pn_)
|
ScoreKeeper(pn_), apNotes(apNotes_)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// Fill in m_CurStageStats, calculate multiplier
|
// Fill in m_CurStageStats, calculate multiplier
|
||||||
@@ -91,7 +91,10 @@ void ScoreKeeperMAX2::OnNextSong( int iSongInCourseIndex, Notes* pNotes )
|
|||||||
int iMaxPossiblePoints; // fill this in below
|
int iMaxPossiblePoints; // fill this in below
|
||||||
if( GAMESTATE->IsCourseMode() )
|
if( GAMESTATE->IsCourseMode() )
|
||||||
{
|
{
|
||||||
iMaxPossiblePoints = (iSongInCourseIndex+1) * 1000000;
|
const int numSongsInCourse = apNotes.size();
|
||||||
|
int courseMult = (numSongsInCourse * (numSongsInCourse + 1)) / 2;
|
||||||
|
|
||||||
|
iMaxPossiblePoints = (10000000 * (iSongInCourseIndex+1)) / courseMult;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ class ScoreKeeperMAX2: public ScoreKeeper
|
|||||||
|
|
||||||
int m_iCurToastyCombo;
|
int m_iCurToastyCombo;
|
||||||
|
|
||||||
|
const vector<Notes*>& apNotes;
|
||||||
|
|
||||||
void AddScore( TapNoteScore score );
|
void AddScore( TapNoteScore score );
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user