From e571d1a4b253cd45d6c90cf9c306a4c1d0a9e696 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Thu, 26 Aug 2021 21:44:02 -0600 Subject: [PATCH] qbsp: remove bsp29 limit check, as it will be done in common --- qbsp/writebsp.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/qbsp/writebsp.cc b/qbsp/writebsp.cc index 42c41803..bcfbdea1 100644 --- a/qbsp/writebsp.cc +++ b/qbsp/writebsp.cc @@ -260,18 +260,12 @@ ExportDrawNodes(mapentity_t *entity, node_t *node) dnode->children[i] = -1; else { int nextLeafIndex = static_cast(map.exported_leafs_bsp29.size()); - int childnum = -(nextLeafIndex + 1); - if (childnum < INT16_MIN) { - Error("Map exceeds BSP29 node/leaf limit. Recompile with -bsp2 flag."); - } + const int childnum = -(nextLeafIndex + 1); dnode->children[i] = childnum; ExportLeaf(entity, node->children[i]); } } else { - int childnum = static_cast(map.exported_nodes_bsp29.size()); - if (childnum > INT16_MAX) { - Error("Map exceeds BSP29 node/leaf limit. Recompile with -bsp2 flag."); - } + const int childnum = static_cast(map.exported_nodes_bsp29.size()); dnode->children[i] = childnum; ExportDrawNodes(entity, node->children[i]);