mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 02:12:43 +01:00
- always do CalcInGameCutsceneSize (avoid crash when replay is loaded if mission cutscenes are present)
This commit is contained in:
parent
5315ff4be6
commit
252c1c2aa5
@ -427,7 +427,7 @@ void ComputeCarLightingLevels(CAR_DATA* cp, char detail)
|
||||
norms = (SVECTOR*)model->point_normals;
|
||||
|
||||
ppads = gTempCarVertDump[cp->id];
|
||||
count = num_norms + 1;
|
||||
count = num_norms;// +1;
|
||||
|
||||
while (count >= 0)
|
||||
{
|
||||
|
@ -47,9 +47,12 @@ void InitPadRecording(void)
|
||||
{
|
||||
char *bufferEnd;
|
||||
|
||||
int remain;
|
||||
int remain, cutsSize;
|
||||
int i;
|
||||
|
||||
// initialize chases
|
||||
cutsSize = CalcInGameCutsceneSize();
|
||||
|
||||
gOutOfTape = 0;
|
||||
|
||||
if (gLoadedReplay == 0 &&
|
||||
@ -72,7 +75,7 @@ void InitPadRecording(void)
|
||||
|
||||
// FIXME: is that correct?
|
||||
bufferEnd = replayptr-13380;
|
||||
remain = (u_int)ReplayStart - (u_int)bufferEnd - CalcInGameCutsceneSize();
|
||||
remain = (u_int)ReplayStart - (u_int)bufferEnd - cutsSize;
|
||||
|
||||
for (i = 0; i < NumPlayers; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user