#48097: adv_want dai_unit_defense_desirability() Open Date: 2023-05-28 11:37 Last Update: 2023-05-28 11:54 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/48097 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48097 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-05-28 11:54 Updated by: cazfi * Owner Update from (None) to cazfi * Resolution Update from None to Accepted Comment: Reply To cazfi dai_unit_defense_desirability() currently returns 'int', though the return value is used as an 'adv_want' and the math within the function would benefit from non-integer accuracy. Make it to return adv_want. dai_unit_attack_desirability() was actually even more in need of this change, as it does much more division operations. --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Patches Status: Open [Owner assigned] Priority: 5 - Medium MileStone: 3.0.8 Component: AI Severity: 5 - Medium Resolution: Accepted --------------------------------------------------------------------- Ticket details: dai_unit_defense_desirability() currently returns 'int', though the return value is used as an 'adv_want' and the math within the function would benefit from non-integer accuracy. Make it to return adv_want. -- 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/48097 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48097