]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
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 620cc276808309c33c868327dfb7e8e78aa30c62..f9598e4b9d094707ff541de9b505474350be745c 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;