Skip to content

Commit

Permalink
fix broken VIS in merged maps
Browse files Browse the repository at this point in the history
caused by earlier untested cleanup changes
  • Loading branch information
wootguy committed Apr 29, 2024
1 parent 741f14b commit 1514b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bsp/BspMerger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ void BspMerger::merge_vis(Bsp& mapA, Bsp& mapB) {
// recompress the combined vis data
byte* compressedVis = new byte[decompressedVisSize];
memset(compressedVis, 0, decompressedVisSize);
int newVisLen = CompressAll(allLeaves, decompressedVis, compressedVis, mergedWorldLeafCount, decompressedVisSize);
int newVisLen = CompressAll(allLeaves, decompressedVis, compressedVis, totalVisLeaves, decompressedVisSize);
int oldLen = mapA.header.lump[LUMP_VISIBILITY].nLength;

byte* compressedVisResize = new byte[newVisLen];
Expand Down

0 comments on commit 1514b27

Please sign in to comment.