1
0
mirror of https://github.com/shiroikitsu8/Bayshore_6r_legacy.git synced 2024-12-02 19:17:24 +01:00

fix crown ghost saving bug (2)

This commit is contained in:
ghkkk090 2022-07-30 09:42:30 +07:00
parent 29995d1940
commit da97a9e3de

View File

@ -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)
};
//-----------------------------------------------