From be8038d6429fa3c57b595e37e25782de4e3cef57 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 29 Mar 2005 01:45:38 +0000 Subject: [PATCH] not playable if mod is locked --- stepmania/src/GameCommand.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/stepmania/src/GameCommand.cpp b/stepmania/src/GameCommand.cpp index 4bfe76d918..d3721ff0b4 100644 --- a/stepmania/src/GameCommand.cpp +++ b/stepmania/src/GameCommand.cpp @@ -550,6 +550,16 @@ bool GameCommand::IsPlayable( CString *why ) const } } + if( !m_sModifiers.empty() ) + { + // TODO: Split this and check each modifier individually + if( UNLOCKMAN->ModifierIsLocked(m_sModifiers) ) + { if( why ) + *why = "Modifier is locked"; + return false; + } + } + return true; }