qbsp, maputil: fix empty brush format detection (was detected as brush_primitives)

This commit is contained in:
iknowsomething 2023-11-17 20:56:23 +03:00 committed by Eric Wasylishen
parent 22ad2f4141
commit 815e2c2cef
2 changed files with 2 additions and 2 deletions

View File

@ -1071,7 +1071,7 @@ void map_entity_t::parse_brush(parser_t &parser)
brush_t brush; brush_t brush;
if (parser.token == "(") { if (parser.token == "(" || parser.token == "}") {
brush.base_format = texcoord_style_t::quaked; brush.base_format = texcoord_style_t::quaked;
} else { } else {
parser.parse_token(); parser.parse_token();

View File

@ -2507,7 +2507,7 @@ static mapbrush_t ParseBrush(parser_t &parser, mapentity_t &entity, texture_def_
if (!parser.parse_token(PARSE_PEEK)) if (!parser.parse_token(PARSE_PEEK))
FError("{}: unexpected EOF after {{ beginning brush", parser.location); FError("{}: unexpected EOF after {{ beginning brush", parser.location);
if (parser.token == "(") { if (parser.token == "(" || parser.token == "}") {
brush.format = brushformat_t::NORMAL; brush.format = brushformat_t::NORMAL;
} else { } else {
parser.parse_token(); parser.parse_token();