From 6af0aa81c92e296926c6f308a5e48f01456f4d21 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 15 Sep 2003 07:14:39 +0000 Subject: [PATCH] Fix warnings. --- stepmania/src/ScreenPlayerOptions.cpp | 4 ++-- stepmania/src/ScreenSelectDifficulty.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/ScreenPlayerOptions.cpp b/stepmania/src/ScreenPlayerOptions.cpp index e4261ebdcb..4a5ed97300 100644 --- a/stepmania/src/ScreenPlayerOptions.cpp +++ b/stepmania/src/ScreenPlayerOptions.cpp @@ -530,11 +530,11 @@ float ScreenPlayerOptions::ConvertModToNumber(CString value) { if (IsModTimeSpacing(value)) { - return atof(value.c_str() + 1 ); + return (float) atof(value.c_str() + 1 ); } else { - return atof(value.c_str() ); + return (float) atof(value.c_str() ); } } diff --git a/stepmania/src/ScreenSelectDifficulty.cpp b/stepmania/src/ScreenSelectDifficulty.cpp index 89d8f683e7..bb4ad60d00 100644 --- a/stepmania/src/ScreenSelectDifficulty.cpp +++ b/stepmania/src/ScreenSelectDifficulty.cpp @@ -220,7 +220,7 @@ void ScreenSelectDifficulty::MenuRight( PlayerNumber pn ) return; int iSwitchToIndex = -1; - for( int i=m_iChoiceOnPage[pn]+1; iIsPlayable(m_ModeChoices[m_CurrentPage][i])) { @@ -273,7 +273,7 @@ void ScreenSelectDifficulty::ChangePage( Page newPage ) } } } else { - for( int i=0; iIsPlayable(m_ModeChoices[newPage][i])) {