Skip to content

Commit

Permalink
Properly log advancing to the next scenario
Browse files Browse the repository at this point in the history
Restores part of commit 2932d30.
  • Loading branch information
soliton- committed Jul 24, 2019
1 parent 50a5504 commit dade3d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/game.cpp
Expand Up @@ -300,14 +300,16 @@ void game::start_game(const socket_ptr& starter)
DBG_GAME << debug_sides_info() << std::endl;
DBG_GAME << "****" << std::endl;

// If the game was already started we're actually advancing.
const bool advance = started_;
started_ = true;
// Prevent inserting empty keys when reading.
const simple_wml::node& multiplayer = get_multiplayer(level_.root());

const bool save = multiplayer["savegame"].to_bool();
LOG_GAME
<< client_address(starter) << "\t" << player_connections_.find(starter)->name() << "\t"
<< "started" << (save ? " reloaded" : "") << " game:\t\"" << name_ << "\" (" << id_
<< (advance ? "advanced" : "started") << (save ? " reloaded" : "") << " game:\t\"" << name_ << "\" (" << id_
// << ") with: " << list_users(players_, __func__) << ". Settings: map: " << s["id"]
<< ") with: " << list_users(players_, __func__)
<< ". Settings: map: " << multiplayer["mp_scenario"]
Expand Down

0 comments on commit dade3d0

Please sign in to comment.