From 6ad613a07407ca2050e979c9dc92303f2cba0951 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 8 Jul 2003 23:38:26 +0000 Subject: [PATCH] Fix newlines. CVS gets annoyed at changing binary files to ASCII; un-annoy it. --- stepmania/src/ScreenUnlock.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stepmania/src/ScreenUnlock.cpp b/stepmania/src/ScreenUnlock.cpp index 74254a89ff..d4990c9a0e 100644 --- a/stepmania/src/ScreenUnlock.cpp +++ b/stepmania/src/ScreenUnlock.cpp @@ -1,11 +1,14 @@ /* ----------------------------------------------------------------------------- Class: ScreenUnlock + Desc: See header. + Copyright (c) 2003 by the person(s) listed below. All rights reserved. curewater ----------------------------------------------------------------------------- */ + #include "global.h" #include "PrefsManager.h" #include "ScreenUnlock.h" @@ -28,18 +31,24 @@ ScreenUnlock::ScreenUnlock() : ScreenAttract("ScreenUnlock") char filename[30]; sprintf(filename, "UnlockGraphic%d", i); Unlocks[i].Load( THEME->GetPathToG(filename) ); + sprintf(filename, "Unlock%d", i); + PointsUntilNextUnlock.SetXY( THEME->GetMetricI("ScreenUnlock",ssprintf("Unlock%dX", i)), THEME->GetMetricI("ScreenUnlock",ssprintf("Unlock%dX", i)) ); + Unlocks[i].SetName( ssprintf("Unlock%d",i) ); + UtilSetXY( Unlocks[i], "ScreenUnlock" ); + if (!GAMESTATE->m_pUnlockingSys->SongIsLocked (THEME->GetMetric ("ScreenUnlock", ssprintf ("Unlock%dSong", i)))) this->AddChild(&Unlocks[i]); } + /* Remove the decimal if( sDP.Find(".",1) > 0 ) {