From 5198f94d8b5db33e940ac080131cdb7c20290339 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 17 Jul 2003 22:56:28 +0000 Subject: [PATCH] fix warnings --- stepmania/src/ScreenUnlock.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ScreenUnlock.cpp b/stepmania/src/ScreenUnlock.cpp index 32f15816b7..d14f19c6ba 100644 --- a/stepmania/src/ScreenUnlock.cpp +++ b/stepmania/src/ScreenUnlock.cpp @@ -72,7 +72,7 @@ ScreenUnlock::ScreenUnlock() : ScreenAttract("ScreenUnlock") // scrolling text if (THEME->GetMetricI("ScreenUnlock", "UnlockTextScroll") != 0) { - int NumberUnlocks = THEME->GetMetricF("ScreenUnlock", "NumUnlocks"); + int NumberUnlocks = THEME->GetMetricI("ScreenUnlock", "NumUnlocks"); float ScrollingTextX = THEME->GetMetricF("ScreenUnlock", "UnlockTextScrollX"); float ScrollingTextStartY = THEME->GetMetricF("ScreenUnlock", "UnlockTextScrollStartY"); float ScrollingTextEndY = THEME->GetMetricF("ScreenUnlock", "UnlockTextScrollEndY"); @@ -176,12 +176,15 @@ ScreenUnlock::ScreenUnlock() : ScreenAttract("ScreenUnlock") void ScreenUnlock::BreakLine(CString& line) { - for(unsigned i = 1; i < line.GetLength(); i++) + for(unsigned i = 1; i < line.size(); i++) + { if (line[i] == '~' || line[i] == '(') + { if (line[i-1] == ' ') { line[i-1] = '\n'; return; } - + } + } }