fix ocm
This commit is contained in:
parent
aaa872ea35
commit
bf0cedacec
@ -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!;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user