Write an error message to the log instead of showing a messagebox for unsopported... 13/head
authorStijn Buys <ingar@osirion.org>
Sat, 3 Oct 2015 14:59:18 +0000 (16:59 +0200)
committerStijn Buys <ingar@osirion.org>
Sat, 3 Oct 2015 14:59:18 +0000 (16:59 +0200)
radiant/eclass_doom3.cpp

index 620cc27..f9598e4 100644 (file)
@@ -502,7 +502,9 @@ static bool EntityClass_parse( EntityClass& entityClass, Tokeniser& tokeniser ){
                else
                {
                        CopiedString tmp( key );
-                       ASSERT_MESSAGE( !string_equal_n( key, "editor_", 7 ), "unsupported editor key: " << makeQuoted( key ) );
+                       if ( string_equal_n( key, "editor_", 7 ) ) {
+                               globalErrorStream() << "unsupported editor key " << makeQuoted( key ) ;
+                       }
                        EntityClassAttribute& attribute = EntityClass_insertAttribute( entityClass, key ).second;
                        attribute.m_type = "string";
                        const char* value;