From 1900979e46e82a5f17e31e30cf8d1b6bea76cbec Mon Sep 17 00:00:00 2001 From: Andrew Livy Date: Tue, 3 Jun 2003 22:00:18 +0000 Subject: [PATCH] fix crash on holdarrows -_- --- stepmania/src/NoteDisplay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/NoteDisplay.cpp b/stepmania/src/NoteDisplay.cpp index 72e7763f6f..122d4aaacf 100644 --- a/stepmania/src/NoteDisplay.cpp +++ b/stepmania/src/NoteDisplay.cpp @@ -400,7 +400,8 @@ void NoteDisplay::DrawHold( const HoldNote& hn, const bool bActive, const float const float fYTail = bReverse ? fStartYPos : fEndYPos; // the center the tail const bool bWavy = GAMESTATE->m_PlayerOptions[m_PlayerNumber].m_fEffects[PlayerOptions::EFFECT_DRUNK] > 0; - const int fYStep = bWavy ? 16;// causes crash w/ some NoteSkins : 128; // use small steps only if wavy + const int fYStep = bWavy ? 16 : 16;// causes crash w/ some NoteSkins : 128; // use small steps only if wavy + // If you don't include the 128 you can't compile this code!!!!!!! - Andy. const float fColorScale = 1*fLife + (1-fLife)*cache->m_fHoldNGGrayPercent;