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

Instead of creating lots of image::locators and calling a family of similarly-named preferences functions, this refactor encapsulates that logic and uses an enum. The new orb_status files still need adding to the MacOS build. An assert has been added to `unit_drawer`'s constructor. There are two callers - the `display` class guards it with an explicit check before constructing unit_drawer. The `game_display` class doesn't have an explicit check, but it's clear that other code in that class assumes the teams are already valid (and would crash if they weren't).