Fix previous commit
This commit is contained in:
@@ -255,7 +255,7 @@ void ScreenGameplay::Init()
|
|||||||
// Init ScoreKeepers
|
// Init ScoreKeepers
|
||||||
//
|
//
|
||||||
|
|
||||||
FOREACH_PlayerNumber(p)
|
FOREACH_EnabledPlayer(p)
|
||||||
{
|
{
|
||||||
switch( PREFSMAN->m_iScoringType )
|
switch( PREFSMAN->m_iScoringType )
|
||||||
{
|
{
|
||||||
@@ -408,9 +408,9 @@ void ScreenGameplay::Init()
|
|||||||
case PLAY_MODE_ONI:
|
case PLAY_MODE_ONI:
|
||||||
case PLAY_MODE_NONSTOP:
|
case PLAY_MODE_NONSTOP:
|
||||||
case PLAY_MODE_ENDLESS:
|
case PLAY_MODE_ENDLESS:
|
||||||
FOREACH_PlayerNumber(p)
|
FOREACH_EnabledPlayer(p)
|
||||||
{
|
{
|
||||||
if( !GAMESTATE->IsPlayerEnabled(p) && !SHOW_LIFE_METER_FOR_DISABLED_PLAYERS )
|
if( !SHOW_LIFE_METER_FOR_DISABLED_PLAYERS )
|
||||||
continue; // skip
|
continue; // skip
|
||||||
|
|
||||||
switch( GAMESTATE->m_SongOptions.m_LifeType )
|
switch( GAMESTATE->m_SongOptions.m_LifeType )
|
||||||
@@ -1265,8 +1265,8 @@ void ScreenGameplay::Update( float fDeltaTime )
|
|||||||
//
|
//
|
||||||
// Update living players' alive time
|
// Update living players' alive time
|
||||||
//
|
//
|
||||||
FOREACH_PlayerNumber(pn)
|
FOREACH_EnabledPlayer(pn)
|
||||||
if( GAMESTATE->IsPlayerEnabled(pn) && !g_CurStageStats.bFailed[pn])
|
if(!g_CurStageStats.bFailed[pn])
|
||||||
g_CurStageStats.fAliveSeconds [pn] += fDeltaTime * GAMESTATE->m_SongOptions.m_fMusicRate;
|
g_CurStageStats.fAliveSeconds [pn] += fDeltaTime * GAMESTATE->m_SongOptions.m_fMusicRate;
|
||||||
|
|
||||||
// update fGameplaySeconds
|
// update fGameplaySeconds
|
||||||
|
|||||||
Reference in New Issue
Block a user