#43432: Minor optimization to unit_do_disband_trad() Open Date: 2021-12-19 18:53 Last Update: 2022-01-08 05:15 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-01-08 05:15 Updated by: cazfi * Milestone Update from (None) to 3.0.1 --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: (None) Type: Patches Status: Open Priority: 5 - Medium MileStone: 3.0.1 Component: AI Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- 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