vis: fix writing leaf.visofs for Q1 cluster vis

This commit is contained in:
Eric Wasylishen 2021-10-08 23:52:46 -06:00
parent 056e9442fd
commit ed527217c6
1 changed files with 6 additions and 0 deletions

View File

@ -615,6 +615,12 @@ static void ClusterFlow(int clusternum, leafbits_t &buffer, mbsp_t *bsp)
bsp->dleafs[i].visofs = visofs;
}
}
} else {
for (i = 0; i < portalleafs_real; i++) {
if (bsp->dleafs[i + 1].cluster == clusternum) {
bsp->dleafs[i + 1].visofs = visofs;
}
}
}
memcpy(dest, compressed, len);