1
0
mirror of synced 2024-12-04 19:17:58 +01:00

Merge pull request #27 from ghkkk090/master

fix ocm
This commit is contained in:
Luna 2022-08-17 14:24:35 +01:00 committed by GitHub
commit 695ff1c932
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -292,9 +292,14 @@ export async function saveGhostBattleResult(body: wm.protobuf.SaveGameResultRequ
{
saveExOCM.periodId = 0;
}
if(body.rgResult?.brakingPoint){
if(body.rgResult?.brakingPoint)
{
saveExOCM.brakingPoint = body.rgResult?.brakingPoint!;
}
else
{
saveExOCM.brakingPoint = 0;
}
if(body?.playedAt){
saveExOCM.playedAt = body?.playedAt!;
}

View File

@ -484,6 +484,17 @@ export async function ocmQualifyingDay(body: wm.protobuf.LoadGhostCompetitionInf
};
}
}
else
{
// Response data
msg = {
error: wmproto.wm.protobuf.ErrorCode.ERR_SUCCESS,
periodId: 0,
closed: false,
qualified: isQualified,
result: gbRecord!.result
};
}
}
// Record not found
else