From 8988dab6f7175858bcb2587d4cb0156cc36ad0a5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 12 Feb 2003 19:39:58 +0000 Subject: [PATCH] printf? --- stepmania/src/Background.cpp | 2 +- stepmania/src/CourseContentsFrame.cpp | 4 ++-- stepmania/src/HoldGhostArrow.cpp | 2 +- stepmania/src/LifeMeterBattery.cpp | 2 +- stepmania/src/ScreenEdit.cpp | 8 ++++---- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/stepmania/src/Background.cpp b/stepmania/src/Background.cpp index a665cb99a1..9ffc69c155 100644 --- a/stepmania/src/Background.cpp +++ b/stepmania/src/Background.cpp @@ -385,7 +385,7 @@ void Background::Update( float fDeltaTime ) if( int(i) > m_iCurBGSegment ) { -// printf( "%d, %d, %f, %f\n", m_iCurBGSegment, i, m_aBGSegments[i].m_fStartBeat, GAMESTATE->m_fSongBeat ); +// LOG->Trace( "%d, %d, %f, %f\n", m_iCurBGSegment, i, m_aBGSegments[i].m_fStartBeat, GAMESTATE->m_fSongBeat ); BGAnimation* pOld = GetCurBGA(); m_iCurBGSegment = i; BGAnimation* pNew = GetCurBGA(); diff --git a/stepmania/src/CourseContentsFrame.cpp b/stepmania/src/CourseContentsFrame.cpp index 78417650fa..9c6c60970c 100644 --- a/stepmania/src/CourseContentsFrame.cpp +++ b/stepmania/src/CourseContentsFrame.cpp @@ -111,7 +111,7 @@ void CourseContentsFrame::SetFromCourse( Course* pCourse ) if( pNotes == NULL ) continue; // skip - printf( "Adding song '%s'\n", pSong->m_sMainTitle.GetString() ); + LOG->Trace( "Adding song '%s'\n", pSong->m_sMainTitle.GetString() ); m_CourseContentDisplays[m_iNumContents].Load( m_iNumContents+1, pSong, pNotes ); m_CourseContentDisplays[m_iNumContents].SetXY( 0, -((MAX_VISIBLE_CONTENTS-1)/2) * float(ContentsBarHeight) ); m_CourseContentDisplays[m_iNumContents].StopTweening(); @@ -120,7 +120,7 @@ void CourseContentsFrame::SetFromCourse( Course* pCourse ) m_iNumContents ++; } - printf( "m_iNumContents is %d\n", m_iNumContents ); + LOG->Trace( "m_iNumContents is %d\n", m_iNumContents ); } void CourseContentsFrame::Update( float fDeltaTime ) diff --git a/stepmania/src/HoldGhostArrow.cpp b/stepmania/src/HoldGhostArrow.cpp index 00ea0a40d6..478f1345c1 100644 --- a/stepmania/src/HoldGhostArrow.cpp +++ b/stepmania/src/HoldGhostArrow.cpp @@ -41,7 +41,7 @@ void HoldGhostArrow::Update( float fDeltaTime ) CLAMP( m_fHeatLevel, 0, 1 ); // if( m_fHeatLevel > 0 ) -// printf( "m_fHeatLevel = %f\n", m_fHeatLevel ); +// LOG->Trace( "m_fHeatLevel = %f\n", m_fHeatLevel ); int iStateNum = (int)min( m_fHeatLevel * GetNumStates(), GetNumStates()-1 ); SetState( iStateNum ); diff --git a/stepmania/src/LifeMeterBattery.cpp b/stepmania/src/LifeMeterBattery.cpp index 44893726e6..728d40b34e 100644 --- a/stepmania/src/LifeMeterBattery.cpp +++ b/stepmania/src/LifeMeterBattery.cpp @@ -153,7 +153,7 @@ void LifeMeterBattery::OnDancePointsChange() iPossibleDancePoints = max( 1, iPossibleDancePoints ); float fPercentDancePoints = iActualDancePoints / (float)iPossibleDancePoints + 0.00001f; // correct for rounding errors -// printf( "Actual %d, Possible %d, Percent %f\n", iActualDancePoints, iPossibleDancePoints, fPercentDancePoints ); +// LOG->Trace( "Actual %d, Possible %d, Percent %f\n", iActualDancePoints, iPossibleDancePoints, fPercentDancePoints ); float fNumToDisplay = MAX( 0, fPercentDancePoints*100 ); CString sNumToDisplay = ssprintf("%03.1f%%", fNumToDisplay); diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index 60efe2163d..1227edf0d2 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -1239,13 +1239,13 @@ void ScreenEdit::InputActionMenu( const DeviceInput& DeviceI, const InputEventTy case SDLK_UP: MenuItemLoseFocus( &m_textActionMenu[m_iMenuSelection] ); m_iMenuSelection = (m_iMenuSelection-1+NUM_ACTION_MENU_ITEMS) % NUM_ACTION_MENU_ITEMS; - printf( "%d\n", m_iMenuSelection ); + LOG->Trace( "%d\n", m_iMenuSelection ); MenuItemGainFocus( &m_textActionMenu[m_iMenuSelection] ); break; case SDLK_DOWN: MenuItemLoseFocus( &m_textActionMenu[m_iMenuSelection] ); m_iMenuSelection = (m_iMenuSelection+1) % NUM_ACTION_MENU_ITEMS; - printf( "%d\n", m_iMenuSelection ); + LOG->Trace( "%d\n", m_iMenuSelection ); MenuItemGainFocus( &m_textActionMenu[m_iMenuSelection] ); break; case SDLK_RETURN: @@ -1324,13 +1324,13 @@ void ScreenEdit::InputNamingMenu( const DeviceInput& DeviceI, const InputEventTy case SDLK_UP: MenuItemLoseFocus( &m_textNamingMenu[m_iMenuSelection] ); m_iMenuSelection = (m_iMenuSelection-1+NUM_NAMING_MENU_ITEMS) % NUM_NAMING_MENU_ITEMS; - printf( "%d\n", m_iMenuSelection ); + LOG->Trace( "%d\n", m_iMenuSelection ); MenuItemGainFocus( &m_textNamingMenu[m_iMenuSelection] ); break; case SDLK_DOWN: MenuItemLoseFocus( &m_textNamingMenu[m_iMenuSelection] ); m_iMenuSelection = (m_iMenuSelection+1) % NUM_NAMING_MENU_ITEMS; - printf( "%d\n", m_iMenuSelection ); + LOG->Trace( "%d\n", m_iMenuSelection ); MenuItemGainFocus( &m_textNamingMenu[m_iMenuSelection] ); break; case SDLK_RETURN: