Small code cleanup allowing to trim an unused field from mnode_t, which should help cpu cache a smidge.

This commit is contained in:
Shpoike 2022-08-04 07:07:15 +01:00
parent 0f1c4fca19
commit 848b605c6c
2 changed files with 0 additions and 19 deletions

View File

@ -1751,21 +1751,6 @@ static void Mod_LoadFaces (lump_t *l, qboolean bsp2)
}
}
/*
=================
Mod_SetParent
=================
*/
static void Mod_SetParent (mnode_t *node, mnode_t *parent)
{
node->parent = parent;
if (node->contents < 0)
return;
Mod_SetParent (node->children[0], node);
Mod_SetParent (node->children[1], node);
}
/*
=================
Mod_LoadNodes
@ -1939,8 +1924,6 @@ static void Mod_LoadNodes (lump_t *l, int bsp2)
Mod_LoadNodes_L1(l);
else
Mod_LoadNodes_S(l);
// Mod_SetParent (loadmodel->nodes, NULL); // sets nodes and leafs
}
static void Mod_ProcessLeafs_S (dsleaf_t *in, int filelen)

View File

@ -172,8 +172,6 @@ typedef struct mnode_s
float minmaxs[6]; // for bounding box culling
struct mnode_s *parent;
// node specific
mplane_t *plane;
struct mnode_s *children[2];