fix challenger meters difference
This commit is contained in:
parent
7dc51897c5
commit
81b0c828dc
@ -197,12 +197,21 @@ export default class CarModule extends Module {
|
||||
lastPlayedPlace: true
|
||||
}
|
||||
})
|
||||
|
||||
let result = 0;
|
||||
if(challengers.result > 0)
|
||||
{
|
||||
result = -Math.abs(challengers.result);
|
||||
}
|
||||
else{
|
||||
result = Math.abs(challengers.result);
|
||||
}
|
||||
|
||||
carsChallengers.push(
|
||||
wm.wm.protobuf.ChallengerCar.create({
|
||||
car: carTarget!,
|
||||
stamp: challengers.stamp,
|
||||
result: challengers.result,
|
||||
result: result,
|
||||
area: challengers.area
|
||||
})
|
||||
);
|
||||
|
@ -126,11 +126,20 @@ export default class GhostModule extends Module {
|
||||
}
|
||||
})
|
||||
|
||||
let result = 0;
|
||||
if(challengers[i].result > 0)
|
||||
{
|
||||
result = -Math.abs(challengers[i].result);
|
||||
}
|
||||
else{
|
||||
result = Math.abs(challengers[i].result);
|
||||
}
|
||||
|
||||
carsChallenger.push(
|
||||
wm.wm.protobuf.ChallengerCar.create({
|
||||
car: carTarget!,
|
||||
stamp: challengers[i].stamp,
|
||||
result: challengers[i].result,
|
||||
result: result,
|
||||
area: challengers[i].area
|
||||
})
|
||||
);
|
||||
@ -218,11 +227,20 @@ export default class GhostModule extends Module {
|
||||
}
|
||||
})
|
||||
|
||||
let result = 0;
|
||||
if(challengers[i].result > 0)
|
||||
{
|
||||
result = -Math.abs(challengers[i].result);
|
||||
}
|
||||
else{
|
||||
result = Math.abs(challengers[i].result);
|
||||
}
|
||||
|
||||
carsChallenger.push(
|
||||
wm.wm.protobuf.ChallengerCar.create({
|
||||
car: carTarget!,
|
||||
stamp: challengers[i].stamp,
|
||||
result: challengers[i].result,
|
||||
result: result,
|
||||
area: challengers[i].area
|
||||
})
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user