Fixed regressions?

The fact that calculated score differs from offical score
really starts to annoy me
This commit is contained in:
Geoffrey Frogeye 2016-02-13 18:54:19 +01:00
parent 9b5920eedb
commit 7f9a034fd5
1 changed files with 3 additions and 0 deletions

View File

@ -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)