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

Zurück zum Archiv-Index
OSDN Ticket System norep****@osdn*****
Mon Nov 21 12:11:11 JST 2022


#45948: Coast fuel units legally save themselves like planes

  Open Date: 2022-10-22 08:07
Last Update: 2022-11-21 05:11

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-11-21 05:11 Updated by: cazfi
 * Owner Update from (None) to cazfi
 * Resolution Update from None to Accepted

Comment:

Patch completely untested at the moment.

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

      Reporter: lexxie9952
         Owner: cazfi
          Type: Bugs
        Status: Open [Owner assigned]
      Priority: 5 - Medium
     MileStone: 3.0.5
     Component: Server
      Severity: 5 - Medium
    Resolution: Accepted
---------------------------------------------------------------------

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
Zurück zum Archiv-Index