From da97a9e3de79cca24ccc1f942f1c32d09960652c Mon Sep 17 00:00:00 2001 From: ghkkk090 <108461408+ghkkk090@users.noreply.github.com> Date: Sat, 30 Jul 2022 09:42:30 +0700 Subject: [PATCH] fix crown ghost saving bug (2) --- src/modules/game.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/game.ts b/src/modules/game.ts index 4dfc760..6b0715a 100644 --- a/src/modules/game.ts +++ b/src/modules/game.ts @@ -2493,9 +2493,9 @@ export default class GameModule extends Module { } }); //---------------MAYBE NOT CORRECT--------------- - let rampVal = ghost_trails!.ramp; - let pathVal = ghost_trails!.path; - /*if(pArea === 0){ //GID_RUNAREA_C1 + /*let rampVal = 0; + let pathVal = 0; + if(pArea === 0){ //GID_RUNAREA_C1 rampVal = Math.floor(Math.random() * 4); pathVal = Math.floor(Math.random() * 10); } @@ -2565,9 +2565,9 @@ export default class GameModule extends Module { let msg = { carId: pCarId, area: pArea, - ramp: rampVal, - path: pathVal, - playedAt: 0, + ramp: ghost_trails!.ramp, + path: ghost_trails!.path, + playedAt: ghost_trails!.playedAt, trail: new Uint8Array(ghost_trails!.trail) }; //-----------------------------------------------