#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:29 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:29 Updated by: cazfi * New Ticket "Move NATURAL_WIDTH & friends from map.h to world_object.h" created --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: (None) Type: Patches Status: Open Priority: 5 - Medium MileStone: 3.3.0 Component: General Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- 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