cosmetic fixes, and random number seed fix
This commit is contained in:
@@ -372,6 +372,7 @@ ScreenEvaluation::ScreenEvaluation( bool bSummary )
|
|||||||
for( int r=0; r<NUM_RADAR_CATEGORIES; r++ ) // foreach line
|
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].Load( THEME->GetPathTo("Graphics","evaluation bars possible 1x2") );
|
||||||
|
m_sprPossibleBar[p][r].StopAnimating();
|
||||||
m_sprPossibleBar[p][r].SetState( p );
|
m_sprPossibleBar[p][r].SetState( p );
|
||||||
m_sprPossibleBar[p][r].SetHorizAlign( Actor::align_left );
|
m_sprPossibleBar[p][r].SetHorizAlign( Actor::align_left );
|
||||||
m_sprPossibleBar[p][r].SetX( BAR_BASE_X(p) );
|
m_sprPossibleBar[p][r].SetX( BAR_BASE_X(p) );
|
||||||
@@ -385,8 +386,8 @@ ScreenEvaluation::ScreenEvaluation( bool bSummary )
|
|||||||
this->AddChild( &m_sprPossibleBar[p][r] );
|
this->AddChild( &m_sprPossibleBar[p][r] );
|
||||||
|
|
||||||
m_sprActualBar[p][r].Load( THEME->GetPathTo("Graphics","evaluation bars actual 1x2") );
|
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].StopAnimating();
|
||||||
|
m_sprActualBar[p][r].SetState( p );
|
||||||
m_sprActualBar[p][r].SetHorizAlign( Actor::align_left );
|
m_sprActualBar[p][r].SetHorizAlign( Actor::align_left );
|
||||||
m_sprActualBar[p][r].SetX( BAR_BASE_X(p) );
|
m_sprActualBar[p][r].SetX( BAR_BASE_X(p) );
|
||||||
m_sprActualBar[p][r].SetY( BAR_START_Y + BAR_SPACING_Y*r );
|
m_sprActualBar[p][r].SetY( BAR_START_Y + BAR_SPACING_Y*r );
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
#include "arch/arch.h"
|
#include "arch/arch.h"
|
||||||
#include "arch/LoadingWindow/LoadingWindow.h"
|
#include "arch/LoadingWindow/LoadingWindow.h"
|
||||||
#include "arch/ErrorDialog/ErrorDialog.h"
|
#include "arch/ErrorDialog/ErrorDialog.h"
|
||||||
|
#include "time.h"
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "SDL_syswm.h" // for SDL_SysWMinfo
|
#include "SDL_syswm.h" // for SDL_SysWMinfo
|
||||||
@@ -261,7 +262,8 @@ int main(int argc, char* argv[])
|
|||||||
SDL_WM_SetCaption("StepMania", "StepMania");
|
SDL_WM_SetCaption("StepMania", "StepMania");
|
||||||
loading_window->Paint();
|
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
|
// Create game objects
|
||||||
|
|||||||
Reference in New Issue
Block a user