From 047bc1299a8739f20bde8b5f4293c3e6dbb2b905 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Wed, 1 Sep 2021 01:19:24 -0600 Subject: [PATCH] qbsp: fix tests --- include/qbsp/qbsp.hh | 2 +- qbsp/qbsp.cc | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/include/qbsp/qbsp.hh b/include/qbsp/qbsp.hh index b15b433c..2e38b398 100644 --- a/include/qbsp/qbsp.hh +++ b/include/qbsp/qbsp.hh @@ -286,7 +286,7 @@ public: bool fixRotateObjTexture; bool fbspx_brushes; bool fNoTextures; - const bspversion_t *target_version = nullptr; + const bspversion_t *target_version = &bspver_q1; int dxSubdivide; int dxLeakDist; int maxNodeSize; diff --git a/qbsp/qbsp.cc b/qbsp/qbsp.cc index efe4bbe6..1ac89c8a 100644 --- a/qbsp/qbsp.cc +++ b/qbsp/qbsp.cc @@ -969,11 +969,6 @@ ParseOptions(char *szOptions) options.target_version = &bspver_h2; } } - - // default to bspver_q1 - if (options.target_version == nullptr) { - options.target_version = &bspver_q1; - } }