Fixed regressions?
The fact that calculated score differs from offical score really starts to annoy me
This commit is contained in:
parent
9b5920eedb
commit
7f9a034fd5
|
@ -322,6 +322,9 @@ def route(roadmap):
|
||||||
'routeTime': routeTime,
|
'routeTime': routeTime,
|
||||||
'pack': pack
|
'pack': pack
|
||||||
})
|
})
|
||||||
|
if not roadmap['stops']: # If it is the first stop, don't provide any alternative
|
||||||
|
break
|
||||||
|
|
||||||
|
|
||||||
if options:
|
if options:
|
||||||
# Choose the best option (i.e. the max efficiency)
|
# Choose the best option (i.e. the max efficiency)
|
||||||
|
|
Reference in a new issue