#45927: AI: dai_hunter_try_launch() fails to launch multiple missiles Open Date: 2022-10-18 19:26 Last Update: 2022-12-03 16:43 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/45927 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45927 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-12-03 16:43 Updated by: cazfi * Milestone Update from (None) to 3.0.6 --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: (None) Type: Bugs Status: Open Priority: 5 - Medium MileStone: 3.0.6 Component: AI Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: dai_hunter_try_launch(): break; /* try next missile, if any */ That break actually causes it to EXIT the loop going through the missiles. Also, it's iterating over missiles on the tile, not necessarily only those carried by the current hunter unit. -- 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/45927 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45927