[Freeciv-tickets] [freeciv] #43432: Minor optimization to unit_do_disband_trad()

Back to archive index
OSDN Ticket System norep****@osdn*****
Sat Apr 9 16:03:12 JST 2022


#43432: Minor optimization to unit_do_disband_trad()

  Open Date: 2021-12-19 18:53
Last Update: 2022-04-09 10:03

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

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

Last Changes/Comment on this Ticket:
2022-04-09 10:03 Updated by: cazfi
 * Owner Update from (None) to cazfi
 * Resolution Update from None to Accepted
 * Milestone Update from 3.0.1 to 3.0.2


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

      Reporter: cazfi
         Owner: cazfi
          Type: Patches
        Status: Open [Owner assigned]
      Priority: 5 - Medium
     MileStone: 3.0.2
     Component: AI
      Severity: 5 - Medium
    Resolution: Accepted
---------------------------------------------------------------------

Ticket details:

unit_is_alive() checks (there's multiple) in unit_do_disband_trad() should not be unconditionally after the blocks that *might* have performed an action on unit. Instead the check should be performed only inside those blocks in the case where the action has been performed.

-- 
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/43432
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43432



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