Skip to content

Commit

Permalink
FIX SVEN MERGE ISSUE!
Browse files Browse the repository at this point in the history
  • Loading branch information
UnrealKaraulov committed Mar 18, 2024
1 parent 68e2053 commit cd41a62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/bsp/BspMerger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2017,9 +2017,6 @@ void BspMerger::merge_lighting(Bsp& mapA, Bsp& mapB)

void BspMerger::create_merge_headnodes(Bsp& mapA, Bsp& mapB, BSPPLANE separationPlane)
{
if (separationPlane.nType == -1)
return;

BSPMODEL& thisWorld = mapA.models[0];
BSPMODEL& otherWorld = mapB.models[0];

Expand Down Expand Up @@ -2050,8 +2047,8 @@ void BspMerger::create_merge_headnodes(Bsp& mapA, Bsp& mapB, BSPPLANE separation
BSPNODE32 headNode = {
separationPlaneIdx, // plane idx
{mapA.nodeCount + 1, 1}, // child nodes
{ bmin.x,bmin.y,bmin.z }, // mins
{ bmax.x, bmax.y,bmax.z }, // maxs
{ std::min(amin.x, bmin.x), std::min(amin.y, bmin.y), std::min(amin.z, bmin.z) }, // mins
{ std::max(amax.x, bmax.x), std::max(amax.y, bmax.y), std::max(amax.z, bmax.z) }, // maxs
0, // first face
0 // n faces (none since this plane is in the void)
};
Expand Down
2 changes: 1 addition & 1 deletion src/editor/Gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9004,7 +9004,7 @@ void Gui::drawMergeWindow()
static bool DeleteHull2 = false;
static bool NoRipent = false;
static bool NoStyles = false;
static bool NoScript = true;
static bool NoScript = false;

bool addNew = false;

Expand Down

0 comments on commit cd41a62

Please sign in to comment.