cosmetic fixes, and random number seed fix

This commit is contained in:
Chris Danford
2003-02-02 18:18:51 +00:00
parent 57f0a820a1
commit a9550d358c
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -372,6 +372,7 @@ ScreenEvaluation::ScreenEvaluation( bool bSummary )
for( int r=0; r<NUM_RADAR_CATEGORIES; r++ ) // foreach line
{
m_sprPossibleBar[p][r].Load( THEME->GetPathTo("Graphics","evaluation bars possible 1x2") );
m_sprPossibleBar[p][r].StopAnimating();
m_sprPossibleBar[p][r].SetState( p );
m_sprPossibleBar[p][r].SetHorizAlign( Actor::align_left );
m_sprPossibleBar[p][r].SetX( BAR_BASE_X(p) );
@@ -385,8 +386,8 @@ ScreenEvaluation::ScreenEvaluation( bool bSummary )
this->AddChild( &m_sprPossibleBar[p][r] );
m_sprActualBar[p][r].Load( THEME->GetPathTo("Graphics","evaluation bars actual 1x2") );
m_sprActualBar[p][r].SetState( p );
m_sprActualBar[p][r].StopAnimating();
m_sprActualBar[p][r].SetState( p );
m_sprActualBar[p][r].SetHorizAlign( Actor::align_left );
m_sprActualBar[p][r].SetX( BAR_BASE_X(p) );
m_sprActualBar[p][r].SetY( BAR_START_Y + BAR_SPACING_Y*r );
+3 -1
View File
@@ -27,6 +27,7 @@
#include "arch/arch.h"
#include "arch/LoadingWindow/LoadingWindow.h"
#include "arch/ErrorDialog/ErrorDialog.h"
#include "time.h"
#include "SDL.h"
#include "SDL_syswm.h" // for SDL_SysWMinfo
@@ -261,7 +262,8 @@ int main(int argc, char* argv[])
SDL_WM_SetCaption("StepMania", "StepMania");
loading_window->Paint();
srand( (unsigned)RageTimer::GetTimeSinceStart() ); // seed number generator
// changed to use time. GetTimeSinceStart is silly because it always return 0! -Chris
srand( time(NULL) ); // seed number generator
//
// Create game objects