[scene] Update the empty world for the new mnode_t

This gets my qwaq-x11 test scene working again (and makes use of a plane
at infinity, yay PGA).
This commit is contained in:
Bill Currie 2022-05-23 01:32:33 +09:00
parent 3a2560e4c1
commit 26330d0fcb

View file

@ -57,8 +57,23 @@ static mleaf_t empty_leafs[] = {
},
};
static mnode_t empty_nodes[] = {
[0] = {
.plane = { 0, 0, 0, -1 },
.type = 3,
.children = { ~0, ~1 },
.minmaxs = {-INFINITY, -INFINITY, -INFINITY,
INFINITY, INFINITY, INFINITY},
},
};
static int empty_node_parents[] = {
[0] = -1,
};
static int empty_leaf_parents[] = {
[1] = -1,
[0] = 0,
[1] = 0,
};
static int empty_leaf_flags[] = {
@ -75,10 +90,12 @@ static model_t empty_world = {
.brush = {
.modleafs = 2,
.visleafs = 1,
.nodes = (mnode_t *) &empty_leafs[1],
.numnodes = 1,
.nodes = empty_nodes,
.leafs = empty_leafs,
.entities = empty_entities,
.visdata = empty_visdata,
.node_parents = empty_node_parents,
.leaf_parents = empty_leaf_parents,
.leaf_flags = empty_leaf_flags,
},