fix ocm
This commit is contained in:
parent
59492f78d9
commit
6f21526ff9
@ -76,7 +76,7 @@ export default class GhostModule extends Module {
|
||||
let period = 1;
|
||||
|
||||
// Count how many period
|
||||
while(competitionPeriodStartTimestamp < ocmEventDate.competitionEndAt)
|
||||
while(competitionPeriodStartTimestamp < ocmEventDate.competitionCloseAt)
|
||||
{
|
||||
|
||||
// Count period closing timestamp
|
||||
|
@ -288,6 +288,10 @@ export async function saveGhostBattleResult(body: wm.protobuf.SaveGameResultRequ
|
||||
if(body.rgResult?.periodId){
|
||||
saveExOCM.periodId = body.rgResult?.periodId!;
|
||||
}
|
||||
else
|
||||
{
|
||||
saveExOCM.periodId = 0;
|
||||
}
|
||||
if(body.rgResult?.brakingPoint){
|
||||
saveExOCM.brakingPoint = body.rgResult?.brakingPoint!;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user