
I had re-added it in a limited context in eaea9be1177398b2fe1 since I needed it to fix (IIRC) a crash in the editor when adding units, since the editor didn't have a game_board. However, looking at the code again, I realized that the display class (base of editor_display) holds a pointer to a display_context object. map_context inherits from display_context, and the editor sets the editor_display's display_context to the current map_context. Therefor, I could just access the units needed via display::get_units, instead of needing a global pointer.
About
The Battle for Wesnoth is an Open Source, turn-based tactical strategy game with a high fantasy theme, featuring both singleplayer and online/hotseat multiplayer combat. Fight a desperate battle to reclaim the throne of Wesnoth, or take hand in any number of other adventures.
License
Please see the wiki for information regarding The Battle for Wesnoth's licensing:
https://wiki.wesnoth.org/Wesnoth:Copyrights
Installing
See INSTALL for instructions on how to build the game from source code.
More Information
For extensive documentation about all aspects of the game, see the official Battle for Wesnoth web site.
A (translated) description of how to play the game can be found in doc/manual/manual.*.html, or online at:
https://wiki.wesnoth.org/WesnothManual
The official Battle for Wesnoth Forums (with over 400,000 posts from more than 20,000 registered members) can be found at: