From 1be2f04e7573c6bf116edc796b9d198fde123047 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 3 Oct 2015 16:59:18 +0200 Subject: [PATCH] Write an error message to the log instead of showing a messagebox for unsopported Doom 3 entity keys. --- radiant/eclass_doom3.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2