not playable if mod is locked

This commit is contained in:
Chris Danford
2005-03-29 01:45:38 +00:00
parent 300d3fcd57
commit be8038d642
+10
View File
@@ -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;
}