clear all stage stats to fix accumulating life and combo memory
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include "Steps.h"
|
||||
#include "song.h"
|
||||
|
||||
void StageStats::Init()
|
||||
StageStats::StageStats()
|
||||
{
|
||||
playMode = PLAY_MODE_INVALID;
|
||||
pStyle = NULL;
|
||||
@@ -14,6 +14,11 @@ void StageStats::Init()
|
||||
fGameplaySeconds = 0;
|
||||
}
|
||||
|
||||
void StageStats::Init()
|
||||
{
|
||||
*this = StageStats();
|
||||
}
|
||||
|
||||
void StageStats::AssertValid( PlayerNumber pn ) const
|
||||
{
|
||||
ASSERT( vpSongs.size() != 0 );
|
||||
|
||||
@@ -12,7 +12,7 @@ struct lua_State;
|
||||
|
||||
struct StageStats
|
||||
{
|
||||
StageStats() { Init(); }
|
||||
StageStats();
|
||||
void Init();
|
||||
|
||||
void AssertValid( PlayerNumber pn ) const;
|
||||
|
||||
@@ -12,11 +12,15 @@ public:
|
||||
|
||||
void Reset()
|
||||
{
|
||||
m_CurStageStats.Init();
|
||||
m_vPlayedStageStats.clear();
|
||||
m_AccumStageStats.Init();
|
||||
m_FinalEvalStageStats.Init();
|
||||
|
||||
CalcAccumStageStats();
|
||||
}
|
||||
|
||||
StageStats m_CurStageStats; // current stage (not necessarily passed if Extra Stage)
|
||||
StageStats m_CurStageStats; // current stage (not necessarily passed if Extra Stage)
|
||||
vector<StageStats> m_vPlayedStageStats;
|
||||
|
||||
// Only the latest 3 normal songs + passed extra stages.
|
||||
|
||||
Reference in New Issue
Block a user