mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 04:13:18 +00:00

Currently, the editor does not generate game_board objects, and leaves the pointer resources::gameboard null. This commit makes map_location, reports, and tod_manager, three things used in editor mode, use the display_context pointer instead of the game_board pointer. We also move a function to display_context, which finds a const unit * to a visible unit at a hex.