Skip to content

Commit 5582a43

Browse files
committed
- fix cutscene tool generating overlapping replay offsets
1 parent cfea442 commit 5582a43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Driver2CutsceneTool/cutscene_tool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ void PackCutsceneFile(const char* foldername)
405405
header.data[i].offset = offset / 4; // because it use shorts we have an multiplier
406406
header.data[i].size = repsizes[replayId];
407407

408-
int sizeStep = (repsizes[replayId] / 2048) * 2048;
408+
int sizeStep = ((repsizes[replayId] + 1024) / 2048) * 2048;
409409

410410
if (sizeStep < 2048)
411411
sizeStep = 2048;

0 commit comments

Comments
 (0)