BrokenRegistry / Rotp-Fusion

Other
22 stars 4 forks source link

Do not guess ship as moving toward system it arrived at and is retreating from #18

Closed dHannasch closed 11 months ago

dHannasch commented 11 months ago

As reported in https://github.com/BrokenRegistry/Rotp-Fusion/pull/17#issuecomment-1646140197 , guessing a destination by looking forward along a line will erroneously report as a destination a system that a ship has reached and is retreating from (because it is closer to that system than it was last turn).

This branch fixes that bug.

BrokenRegistry commented 11 months ago

Fixed a bug I missed last week: Old save game compatibility! When you add a new parameter, it's not initialzed by the loading process, then they have to be "non-null" tested.