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:
parent
0392698bd3
commit
b7a06f4bb3
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue