Update of /cvsroot/plib/plib/src/ssgAux
In directory usw-pr-cvs1:/tmp/cvs-serv25662
Modified Files:
ssgaWaveSystem.cxx
Log Message:
Erik Hofman: Fixed another for loop / scope of "i" issue
Index: ssgaWaveSystem.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/ssgAux/ssgaWaveSystem.cxx,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- ssgaWaveSystem.cxx 9 Aug 2002 19:55:45 -0000 1.7
+++ ssgaWaveSystem.cxx 11 Aug 2002 19:23:48 -0000 1.8
@@ -49,7 +49,7 @@
int num_trains = 0 ;
- for ( int i = 0 ; i < SSGA_MAX_WAVETRAIN ; i++ )
+ for ( i = 0 ; i < SSGA_MAX_WAVETRAIN ; i++ )
if ( train [ i ] != NULL )
{
adjSpeed [num_trains] = train [ i ] -> getSpeed () * G *
@@ -64,7 +64,7 @@
num_trains++ ;
}
- for ( int i = 0 ; i <= nstrips ; i++ )
+ for ( i = 0 ; i <= nstrips ; i++ )
{
float fade_i = (i<2) ? 0.0f : (i<7) ? (float)(i-2)/5.0f :
(i>nstrips-2) ? 0.0f :
|