bspfile: fix incorrectly identifying bsp2 as hexen2bsp2

This commit is contained in:
Eric Wasylishen 2021-09-20 19:38:38 -06:00
parent 27f391d27c
commit 7622ca1a3b
1 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,12 @@ BSPVersionSupported(int32_t ident, int32_t version, const bspversion_t **out_ver
{ {
for (const bspversion_t *bspver : bspversions) { for (const bspversion_t *bspver : bspversions) {
if (bspver->ident == ident && bspver->version == version) { if (bspver->ident == ident && bspver->version == version) {
if (bspver->hexen2) {
// HACK: don't detect as Hexen II here, it's done later (isHexen2).
// Since the Hexen II bspversion_t's have the same ident/version as Quake
// we need to assume Quake.
continue;
}
*out_version = bspver; *out_version = bspver;
return true; return true;
} }