[Commits] [wesnoth/wesnoth] e07a32: Use an enum for loading screen stages instead of s...

GitHub noreply at github.com
Tue Nov 7 07:11:44 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: e07a32e65855e199bea072e4c00a3b75a11c8c8d
      https://github.com/wesnoth/wesnoth/commit/e07a32e65855e199bea072e4c00a3b75a11c8c8d
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-11-07 (Tue, 07 Nov 2017)

  Changed paths:
    M src/game_config_manager.cpp
    M src/game_initialization/multiplayer.cpp
    M src/game_launcher.cpp
    M src/game_state.cpp
    M src/gui/dialogs/loading_screen.cpp
    M src/gui/dialogs/loading_screen.hpp
    M src/gui/dialogs/multiplayer/mp_join_game.cpp
    M src/gui/dialogs/network_transmission.cpp
    M src/gui/dialogs/network_transmission.hpp
    M src/play_controller.cpp
    M src/playmp_controller.cpp
    M src/wesnoth.cpp

  Log Message:
  -----------
  Use an enum for loading screen stages instead of string IDs

This allows for compile-time verification of stage ID names, instead of leaving it until runtime.
It also allows the use of std::atomic for the current stage class variable since we're no longer
using a const-qualified type.





More information about the Commits mailing list