From d1ee22d31411ba13e34aa51c96b0f32634ed5011 Mon Sep 17 00:00:00 2001 From: Andrew Wong Date: Fri, 25 Jul 2003 05:44:58 +0000 Subject: [PATCH] skip unlock screen if unlocks are off (messy) --- stepmania/src/ScreenUnlock.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stepmania/src/ScreenUnlock.cpp b/stepmania/src/ScreenUnlock.cpp index 14ef529ddc..8beafdf6ca 100644 --- a/stepmania/src/ScreenUnlock.cpp +++ b/stepmania/src/ScreenUnlock.cpp @@ -40,6 +40,15 @@ ScreenUnlock::ScreenUnlock() : ScreenAttract("ScreenUnlock") { + // DIRTY HACK: bypass unlocks screen if unlocks are off + // (theres probably a more efficient way but i've yet to figure what it is) + if (!PREFSMAN->m_bUseUnlockSystem) + { + this->ClearMessageQueue( SM_BeginFadingOut ); // ignore ScreenAttract's SecsToShow + this->PostScreenMessage( SM_BeginFadingOut, 0 ); + return; + } + LOG->Trace("ScreenUnlock::ScreenUnlock()"); PointsUntilNextUnlock.LoadFromFont( THEME->GetPathToF("Common normal") ); PointsUntilNextUnlock.SetHorizAlign( Actor::align_left );