Correction sur arrondi sur-encombrement

This commit is contained in:
LeRatierBretonnien 2023-07-01 21:28:18 +02:00
parent 000c89b11a
commit 5148d02314

View File

@ -1114,7 +1114,7 @@ export class RdDActor extends RdDBaseActor {
case 'entite': case 'vehicule': case 'entite': case 'vehicule':
return 0; return 0;
} }
return Math.min(0, this.getEncombrementMax() - Math.ceil(Number(this.getEncTotal()))); return Math.min(0, this.getEncombrementMax() - Math.round(Number(this.getEncTotal())));
} }
getMessageSurEncombrement() { getMessageSurEncombrement() {