Someone used the FOREACH_EnabledPlayer( pn ) on my setting of the life for Network play.

This is the improper way to do it, and caused a compile error.  I set it back and left a note.
This commit is contained in:
Charles Lohr
2004-04-05 15:37:03 +00:00
parent f4ca6e62af
commit 648dd0eeb9
+10 -1
View File
@@ -1412,7 +1412,16 @@ void ScreenGameplay::Update( float fDeltaTime )
CLAMP( fPercentPositionSong, 0, 1 );
m_meterSongPosition.SetPercent( fPercentPositionSong );
FOREACH_EnabledPlayer( pn )
//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;pn<NUM_PLAYERS;pn++);
{
if( m_pLifeMeter[pn] )
NSMAN->m_playerLife[pn] = int(m_pLifeMeter[pn]->GetLife()*10000);