From f81516f53111eb81e0c25b0e207c08f95ccd64a5 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 4 May 2005 19:19:22 +0000 Subject: [PATCH] assert -> warning --- stepmania/src/Actor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 6d497cb760..d4ff7f5ba6 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -1019,7 +1019,11 @@ void Actor::QueueMessage( const CString& sMessageName ) void Actor::AddCommand( const CString &sCmdName, apActorCommands apac ) { - ASSERT_M( !HasCommand(sCmdName), m_sName+"'s command '"+sCmdName+"' defined twice" ); + if( HasCommand(sCmdName) ) + { + CString sWarning = m_sName+"'s command '"+sCmdName+"' defined twice"; + Dialog::OK( sWarning, "COMMAND_DEFINED_TWICE" ); + } CString sMessage; if( GetMessageNameFromCommandName(sCmdName, sMessage) )