From 12e48f9ce2ed9df37c5c5009d6b23d9184d762d6 Mon Sep 17 00:00:00 2001 From: Charles Lohr Date: Mon, 5 Apr 2004 21:15:54 +0000 Subject: [PATCH] Sorry, I figured out what they were doing and why it didn't work I made it work. in VC++ --- stepmania/src/ScreenGameplay.cpp | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index e93f9c856f..b52b3526df 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -1412,20 +1412,18 @@ void ScreenGameplay::Update( float fDeltaTime ) CLAMP( fPercentPositionSong, 0, 1 ); m_meterSongPosition.SetPercent( fPercentPositionSong ); - //Will not compile - //This causes compile error for me - //Someone edited it to read: FOREACH_EnabledPlayer( pn ) - //I edited it back. - //IT looks like it would cause problems as it was - //but by updating the life, it does not effect it. - //For non-enabled players, the life will not get sent. - //FOREACH_EnabledPlayer( pn ) - //If you do not like my fix, please message me. - for (pn = 0;pnm_playerLife[pn] = int(m_pLifeMeter[pn]->GetLife()*10000); + if( m_pLifeMeter[pn2] ) + NSMAN->m_playerLife[pn2] = int(m_pLifeMeter[pn2]->GetLife()*10000); } + + } /* Set g_CurStageStats.bFailed for failed players. In, FAIL_ARCADE, send