#46120: is_action_possible(): Redundant checks for CLEAN_* Open Date: 2022-11-26 20:18 Last Update: 2022-12-23 15:07 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/46120 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46120 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-12-23 15:07 Updated by: cazfi * Status Update from Open to Closed * Resolution Update from Accepted to Fixed --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Bugs Status: Closed Priority: 5 - Medium MileStone: 3.0.6 Component: General Severity: 5 - Medium Resolution: Fixed --------------------------------------------------------------------- Ticket details: When is_action_possible() determines target extra for CLEAN_POLLUTION or CLEAN_FALLOUT by prev_extra_in_tile() some of the later checks are redundant (should be done only for caller-provided extras); we already know that the extra is on tile, and that it's removed by the action. -- 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/46120 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46120