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:
Glenn Maynard
2003-06-11 19:11:24 +00:00
parent 7c47c03162
commit fbaa610f32
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ protected:
// bool Stats_DoublesCount;
public:
ScoreKeeper(const vector<Notes*>& apNotes, PlayerNumber pn) { m_PlayerNumber=pn; }
ScoreKeeper(PlayerNumber pn) { m_PlayerNumber=pn; }
virtual void DrawPrimitives() { }
virtual void OnNextSong( int iSongInCourseIndex, Notes* pNotes ) = 0; // before a song plays (called multiple times if course)
+6 -3
View File
@@ -20,8 +20,8 @@
#include "Course.h"
ScoreKeeperMAX2::ScoreKeeperMAX2( const vector<Notes*>& apNotes, PlayerNumber pn_ ):
ScoreKeeper(apNotes, pn_)
ScoreKeeperMAX2::ScoreKeeperMAX2( const vector<Notes*>& apNotes_, PlayerNumber pn_ ):
ScoreKeeper(pn_), apNotes(apNotes_)
{
//
// Fill in m_CurStageStats, calculate multiplier
@@ -91,7 +91,10 @@ void ScoreKeeperMAX2::OnNextSong( int iSongInCourseIndex, Notes* pNotes )
int iMaxPossiblePoints; // fill this in below
if( GAMESTATE->IsCourseMode() )
{
iMaxPossiblePoints = (iSongInCourseIndex+1) * 1000000;
const int numSongsInCourse = apNotes.size();
int courseMult = (numSongsInCourse * (numSongsInCourse + 1)) / 2;
iMaxPossiblePoints = (10000000 * (iSongInCourseIndex+1)) / courseMult;
}
else
{
+2
View File
@@ -24,6 +24,8 @@ class ScoreKeeperMAX2: public ScoreKeeper
int m_iCurToastyCombo;
const vector<Notes*>& apNotes;
void AddScore( TapNoteScore score );
public: