skywarth / country-routing-algorithm

GNU General Public License v3.0
1 stars 0 forks source link

Consecutive calculations output incorrect results #2

Closed anon-pr closed 1 year ago

anon-pr commented 1 year ago

Consecutive calculations through the UI provide incoherent results. Told ya that one day global vars gonna bite you on the bottom.

Big L

skywarth commented 1 year ago

Ah sh#t, here we go again.

Problem most probably originates from keeping distanceBetweenNode and distanceToFinalDestination. keeping distanceBetweenNode should be alright but distanceToFinalDestination is the source of evil.

I'll be back...

skywarth commented 1 year ago

You want some more, Mr Toad ?