#48244: Move NATURAL_WIDTH & friends from map.h to world_object.h Open Date: 2023-06-15 07:29 Last Update: 2023-06-15 07:44 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/48244 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48244 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-06-15 07:44 Updated by: cazfi * Owner Update from (None) to cazfi * Resolution Update from None to Accepted --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Patches Status: Open [Owner assigned] Priority: 5 - Medium MileStone: 3.3.0 Component: General Severity: 5 - Medium Resolution: Accepted --------------------------------------------------------------------- Ticket details: Move MAP_INDEX_SIZE, NATIVE_WIDTH, NATIVE_HEIGHT, NATURAL_WIDTH, and NATURAL_HEIGHT from map.h to world_object.h. All these refer to wld.map. They do work as they are, as we currently don't even try to support simultaneous map objects with different size or topology. I just want to start concentrating such direct references to the main map to one place, so that basically grepping for "wld.map" would reveal if some place hardcodes use of main map when it should not. Also prefixed those macros with "MAP_" -- 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/48244 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48244