portal_markid++;
Mod_CheckLoaded(model);
- Portal_PolygonRecursiveMarkLeafs(model->brushq1.nodes, polypoints, numpoints);
+ Portal_PolygonRecursiveMarkLeafs(model->brush.data_nodes, polypoints, numpoints);
eyeleaf = model->brushq1.PointInLeaf(model, eye);
}
if (info->leafmark)
- info->leafmark[leaf - info->model->brushq1.data_leafs] = true;
+ info->leafmark[leaf - info->model->brush.data_leafs] = true;
// mark surfaces in leaf that can be seen through portal
if (leaf->numleaffaces && info->surfacemark)
Mod_CheckLoaded(model);
- if (!model->brushq1.numportals)
+ if (!model->brush.num_portals)
{
Con_Print("Portal_Visibility: not a brush model\n");
return;
info.updateleafsmins = updateleafsmins;
info.updateleafsmaxs = updateleafsmaxs;
- Portal_RecursiveFindLeafForFlow(&info, model->brushq1.nodes);
+ Portal_RecursiveFindLeafForFlow(&info, model->brush.data_nodes);
if (ranoutofportalplanes)
Con_Printf("Portal_RecursiveFlow: ran out of %d plane stack when recursing through portals\n", MAXRECURSIVEPORTALPLANES);