Archived
0

fix compute time

This commit is contained in:
iMoHax
2015-08-10 14:54:29 +03:00
parent 74bf560eb5
commit 096af8d868

View File

@@ -426,7 +426,7 @@ public class VendorsGraph extends ConnectibleGraph<Vendor> {
int jumps = source.getEntry().getPlace().equals(target.getEntry().getPlace())? 0 : 1; int jumps = source.getEntry().getPlace().equals(target.getEntry().getPlace())? 0 : 1;
int lands = 1; int lands = 1;
if (path != null){ if (path != null){
jumps = path.size()-1; jumps = path.size();
lands += path.getRefillCount(); lands += path.getRefillCount();
//not lands if refuel on this station //not lands if refuel on this station
if (path.isRefill()) lands--; if (path.isRefill()) lands--;