Don't automatically assign SOLID to brushes that have a valid trace type

Fix mixed contents warning displaying the wrong contents
This commit is contained in:
Jonathan 2022-02-05 13:32:06 -05:00
parent 0392698bd3
commit b7a06f4bb3
2 changed files with 2 additions and 2 deletions

View File

@ -628,7 +628,7 @@ struct gamedef_q2_t : public gamedef_t
contentflags_t surf_contents = contents;
// if we don't have a declared content type, assume solid.
if (!(surf_contents.native & ((Q2_LAST_VISIBLE_CONTENTS << 1) - 1))) {
if (!get_content_type(surf_contents)) {
surf_contents.native |= Q2_CONTENTS_SOLID;
}

View File

@ -682,7 +682,7 @@ static contentflags_t Brush_GetContents(const mapbrush_t *mapbrush)
if (!contents.types_equal(base_contents, options.target_game)) {
LogPrint("mixed face contents ({} != {}) at line {}\n",
contentflags_t{mapface.contents}.to_string(options.target_game),
base_contents.to_string(options.target_game),
contents.to_string(options.target_game), mapface.linenum);
break;
}