mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix an out-by-one error
This commit is contained in:
parent
2173151560
commit
3a85d98f83
1 changed files with 2 additions and 2 deletions
|
@ -391,7 +391,7 @@ ClusterFlow (int clusternum)
|
||||||
totalvis += numvis;
|
totalvis += numvis;
|
||||||
|
|
||||||
i = CompressRow (outbuffer, compressed);
|
i = CompressRow (outbuffer, compressed);
|
||||||
cluster->visofs = visdata->size;
|
cluster->visofs = visdata->size;
|
||||||
dstring_append (visdata, compressed, i);
|
dstring_append (visdata, compressed, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -464,7 +464,7 @@ CalcVis (void)
|
||||||
ClusterFlow (i);
|
ClusterFlow (i);
|
||||||
|
|
||||||
for (i = 0; i < numrealleafs; i++) {
|
for (i = 0; i < numrealleafs; i++) {
|
||||||
bsp->leafs[i].visofs = clusters[leafcluster[i]].visofs;
|
bsp->leafs[i + 1].visofs = clusters[leafcluster[i]].visofs;
|
||||||
}
|
}
|
||||||
if (options.verbosity >= 0)
|
if (options.verbosity >= 0)
|
||||||
printf ("average clusters visible: %i\n", totalvis / portalclusters);
|
printf ("average clusters visible: %i\n", totalvis / portalclusters);
|
||||||
|
|
Loading…
Reference in a new issue