From 77de4c66e869934d8b52ec1247ba6fcf2c963c3f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 7 Sep 2002 10:22:21 +0000 Subject: [PATCH] remove unused variables --- stepmania/src/ArrowEffects.cpp | 1 - stepmania/src/GradeDisplay.cpp | 2 +- stepmania/src/LifeMeterBar.cpp | 4 +--- stepmania/src/NoteDisplay.cpp | 6 +++--- stepmania/src/TransitionRectWipe.cpp | 2 +- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/stepmania/src/ArrowEffects.cpp b/stepmania/src/ArrowEffects.cpp index 29eccf26c0..e42ee97219 100644 --- a/stepmania/src/ArrowEffects.cpp +++ b/stepmania/src/ArrowEffects.cpp @@ -46,7 +46,6 @@ float ArrowGetYOffset( PlayerNumber pn, float fNoteBeat ) float ArrowGetXPos( PlayerNumber pn, int iColNum, float fYPos ) { - float fSongBeat = GAMESTATE->m_fSongBeat; float fPixelOffsetFromCenter = GAMESTATE->GetCurrentStyleDef()->m_ColumnInfo[pn][iColNum].fXOffset; if( GAMESTATE->m_PlayerOptions[pn].m_EffectType & PlayerOptions::EFFECT_DRUNK ) diff --git a/stepmania/src/GradeDisplay.cpp b/stepmania/src/GradeDisplay.cpp index 5d42a72d5c..79e1ff7b35 100644 --- a/stepmania/src/GradeDisplay.cpp +++ b/stepmania/src/GradeDisplay.cpp @@ -100,7 +100,7 @@ void GradeDisplay::SpinAndSettleOn( Grade g ) SetDiffuse( D3DXCOLOR(1,1,1,1) ); - int iFrameNo; + int iFrameNo=0; switch( g ) { case GRADE_AAA: iFrameNo = 0; break; diff --git a/stepmania/src/LifeMeterBar.cpp b/stepmania/src/LifeMeterBar.cpp index 15cd15ff11..d32521c9e4 100644 --- a/stepmania/src/LifeMeterBar.cpp +++ b/stepmania/src/LifeMeterBar.cpp @@ -74,9 +74,7 @@ void LifeMeterBar::Load( PlayerNumber pn ) void LifeMeterBar::ChangeLife( TapNoteScore score ) { - bool bWasHot = IsHot(); - - float fDeltaLife; + float fDeltaLife=0.f; switch( GAMESTATE->m_SongOptions.m_DrainType ) { case SongOptions::DRAIN_NORMAL: diff --git a/stepmania/src/NoteDisplay.cpp b/stepmania/src/NoteDisplay.cpp index 2424dff00d..457b1a67e1 100644 --- a/stepmania/src/NoteDisplay.cpp +++ b/stepmania/src/NoteDisplay.cpp @@ -117,8 +117,8 @@ void NoteDisplay::GetTapEdgeColors( const float fNoteBeat, D3DXCOLOR &colorLeadi - float fPercentThroughColorsLeading; // fill these in below - float fPercentThroughColorsTrailing; + float fPercentThroughColorsLeading=0.f; // fill these in below + float fPercentThroughColorsTrailing=0.f; switch( ct ) { case PlayerOptions::COLOR_VIVID: @@ -192,7 +192,7 @@ void NoteDisplay::DrawHold( const HoldNote& hn, const bool bActive, const float const float fYTailBottom = fYTail+fFrameHeight/2; const float fYBodyTop = fYHead; // middle of head - const float fYBodyBottom = fYTailTop; // top of tail +// const float fYBodyBottom = fYTailTop; // top of tail const int fYStep = 8; // draw a segment every 8 pixels // this requires that the texture dimensions be a multiple of 8 diff --git a/stepmania/src/TransitionRectWipe.cpp b/stepmania/src/TransitionRectWipe.cpp index 81622f0c81..0bf58f55ab 100644 --- a/stepmania/src/TransitionRectWipe.cpp +++ b/stepmania/src/TransitionRectWipe.cpp @@ -52,7 +52,7 @@ void TransitionRectWipe::DrawPrimitives() // draw all rectangles for( int i=0; i