qbsp, maputil: fix empty brush format detection (was detected as brush_primitives)
This commit is contained in:
parent
22ad2f4141
commit
815e2c2cef
|
|
@ -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();
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue