From 648dd0eeb9b24796d7952d710344ab5a188ce46c Mon Sep 17 00:00:00 2001 From: Charles Lohr Date: Mon, 5 Apr 2004 15:37:03 +0000 Subject: [PATCH] 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. --- stepmania/src/ScreenGameplay.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 93965c9086..e93f9c856f 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -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;pnm_playerLife[pn] = int(m_pLifeMeter[pn]->GetLife()*10000);