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
1 changed files with 3 additions and 0 deletions
|
@ -322,6 +322,9 @@ def route(roadmap):
|
|||
'routeTime': routeTime,
|
||||
'pack': pack
|
||||
})
|
||||
if not roadmap['stops']: # If it is the first stop, don't provide any alternative
|
||||
break
|
||||
|
||||
|
||||
if options:
|
||||
# Choose the best option (i.e. the max efficiency)
|
||||
|
|
Reference in a new issue