mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
parse the vis data properly
This commit is contained in:
parent
26f3839276
commit
9607b8f5f2
1 changed files with 3 additions and 3 deletions
|
@ -188,9 +188,9 @@ VisEntity (int ent_index)
|
|||
surfacehit = vis + vis_size;
|
||||
memset (surfacehit, 0, (bsp->numfaces + 7) / 8);
|
||||
|
||||
DecompressVis (bsp->visdata + leaf->visofs, vis,
|
||||
(bsp->numleafs + 7) >> 3);
|
||||
for (i = 1, leaf = bsp->leafs + 1; i < bsp->numleafs; i++, leaf++) {
|
||||
DecompressVis (bsp->visdata + leaf->visofs, vis, vis_size);
|
||||
for (i = 0, leaf = bsp->leafs + 1; i < bsp->models[0].visleafs;
|
||||
i++, leaf++) {
|
||||
if (!leaf->nummarksurfaces)
|
||||
continue;
|
||||
if (vis[i >> 3] & (1 << (i & 7))) {
|
||||
|
|
Loading…
Reference in a new issue