#44173: mapgen: Expand adjust_int_map() to take arbitrary target minimum Open Date: 2022-03-23 20:13 Last Update: 2022-03-24 18:07 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/44173 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44173 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-03-24 18:07 Updated by: alienvalkyrie * Owner Update from (None) to alienvalkyrie * Resolution Update from None to Accepted Comment: Since there weren't too many places that use it, I decided to change the existing function and all call sites, rather than try and come up with a name for a new function – this way, those calls where the desired minimum is zero explicitly state that. --------------------------------------------------------------------- Ticket Status: Reporter: alienvalkyrie Owner: alienvalkyrie Type: Patches Status: Open [Owner assigned] Priority: 5 - Medium MileStone: 3.2.0 Component: Server Severity: 5 - Medium Resolution: Accepted --------------------------------------------------------------------- Ticket details: adjust_int_map() and adjust_int_map_filtered() in mapgen_utils.[ch] produce values going from zero to their given int_map_max. Expand these to also take an int_map_min, for use cases like the FIXME introduced in #44167. -- 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/44173 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44173