Fix the MP lobby reloaded indicator always saying the game isn't reloaded.

Currently, the value of `game["savegame"]` is one of `mp_game_settings::SAVED_GAME_MODE`.  However, the `to_bool()` function doesn't recognize any of those values as being true, so a game is always shown in the MP lobby as not being a reload, even if it actually is.
This commit is contained in:
pentarctagon 2019-10-04 16:16:45 -05:00 committed by Gunter Labes
parent c8b1be9cd4
commit c0843fe1a6

View file

@ -31,6 +31,7 @@
#include "terrain/type_data.hpp"
#include "wml_exception.hpp"
#include "game_version.hpp"
#include "mp_game_settings.hpp"
#include <iterator>
@ -213,7 +214,7 @@ game_info::game_info(const config& game, const std::vector<std::string>& install
, time_limit()
, vacant_slots()
, current_turn(0)
, reloaded(game["savegame"].to_bool())
, reloaded(game["savegame"].to_enum<mp_game_settings::SAVED_GAME_MODE>(mp_game_settings::SAVED_GAME_MODE::NONE) != mp_game_settings::SAVED_GAME_MODE::NONE)
, started(false)
, fog(game["mp_fog"].to_bool())
, shroud(game["mp_shroud"].to_bool())