[Freeciv-tickets] [freeciv] #45948: Coast fuel units legally save themselves like planes

Back to archive index
OSDN Ticket System norep****@osdn*****
Sat Oct 22 14:07:32 JST 2022


#45948: Coast fuel units legally save themselves like planes

  Open Date: 2022-10-22 14:07
Last Update: 2022-10-22 14:07

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/45948
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45948

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-10-22 14:07 Updated by: lexxie9952
 * New Ticket "Coast fuel units legally save themselves like planes" created


---------------------------------------------------------------------
Ticket Status:

      Reporter: lexxie9952
         Owner: (None)
          Type: Bugs
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: (None)
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

 In unittools.c::bool is_airunit_refuel_point(const struct tile *ptile,                              const struct player *pplayer,                              const struct unit *punit)adding this block of code at line 1532:
   /* Coastal-fueled units refuel on safe ocean tiles */   if (utype_has_flag(unit_type_get(punit), UTYF_COAST)        && is_safe_ocean(&(wld.map), ptile)) {     return TRUE;   }...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


-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/45948
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45948



More information about the Freeciv-tickets mailing list
Back to archive index