vaendryl / Sunrider

source code of the visual novel 'Sunrider'
http://sunrider-vn.com/
41 stars 21 forks source link

Prevent movement toward None #101

Closed DoumanAsh closed 9 years ago

DoumanAsh commented 9 years ago

best_hex = None originally. Since current_location is always non-None next check will lead to strange result:

if old_spot == best_hex:

Ship will try to move toward None and so it will do nothing at all.

vaendryl commented 9 years ago

agreed