Street capacity used instead of remaining.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
parent
9ecbfe15ed
commit
11a9269cb4
@ -72,7 +72,7 @@ public class Street {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getPercentRemainingCapacity() {
|
public int getPercentRemainingCapacity() {
|
||||||
return (int) (capcity()/(this.length*this.numberOfLanes)*100);
|
return (int) (100 - (capcity()/(this.length*this.numberOfLanes)*100));
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean canTakeVehicles( Vehicle vehicle ) {
|
public boolean canTakeVehicles( Vehicle vehicle ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user