add warning on invalid command

This commit is contained in:
Chris Danford
2004-12-04 21:14:46 +00:00
parent 4183869a45
commit dbc256198a
+8
View File
@@ -18,6 +18,7 @@
#include "Style.h"
#include "Foreach.h"
#include "Command.h"
#include "arch/Dialog/Dialog.h"
void GameCommand::Init()
{
@@ -209,6 +210,13 @@ void GameCommand::Load( int iIndex, const Commands& cmds )
{
m_sSongGroup = sValue;
}
else
{
CString sWarning = ssprintf( "Command '%s' is not valid.", command->GetOriginalCommandString().c_str() );
LOG->Warn( sWarning );
Dialog::OK( sWarning, "FRAME_DIMENSIONS_WARNING" );
}
}
if( !m_bInvalid && sSteps != "" )