...will result in coast-refueled ships smartly returning to nearby coast if able, to avoid death. Currently they only look for city or native base and will die even 1 tile away from obvious shoreline.
Renaming the function to is_unit_refuel_point might be more accurate also.
Cheers
While at it, should centralize that logic. This bug would never had existed if it would have been enough to change the refuel-point logic in one place.
adding this block of code at line 1532:
...will result in coast-refueled ships smartly returning to nearby coast if able, to avoid death. Currently they only look for city or native base and will die even 1 tile away from obvious shoreline.
Renaming the function to is_unit_refuel_point might be more accurate also. Cheers