mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 00:24:12 +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
|
@ -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