From: Stijn Buys Date: Sat, 3 Oct 2015 14:59:18 +0000 (+0200) Subject: Write an error message to the log instead of showing a messagebox for unsopported... X-Git-Tag: xonotic-v0.8.2~20^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F13%2Fhead;p=xonotic%2Fnetradiant.git Write an error message to the log instead of showing a messagebox for unsopported Doom 3 entity keys. --- diff --git a/radiant/eclass_doom3.cpp b/radiant/eclass_doom3.cpp index 620cc276..f9598e4b 100644 --- a/radiant/eclass_doom3.cpp +++ b/radiant/eclass_doom3.cpp @@ -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;