Codechange: Use enum class for command-related enums. (#14775)

This commit is contained in:
Peter Nelson
2025-11-15 19:33:09 +00:00
committed by dP
parent 523635d65e
commit ca744dd7f9
36 changed files with 176 additions and 174 deletions

View File

@@ -90,7 +90,7 @@ void RemoveTextEffect(TextEffectID te_id)
/** Slowly move text effects upwards. */
const IntervalTimer<TimerWindow> move_all_text_effects_interval = {std::chrono::milliseconds(30), [](uint count) {
if (_pause_mode.Any() && _game_mode != GM_EDITOR && _settings_game.construction.command_pause_level <= CMDPL_NO_CONSTRUCTION) return;
if (_pause_mode.Any() && _game_mode != GM_EDITOR && _settings_game.construction.command_pause_level <= CommandPauseLevel::NoConstruction) return;
for (TextEffect &te : _text_effects) {
if (!te.IsValid()) continue;