Skip to content

Commit

Permalink
in debug mode, add team strings as well as names for hidden sides.
Browse files Browse the repository at this point in the history
This brings the team names in line with the player names and other
behavior in mp_connect in debug mode. For instance there are other
lines like this:
https://github.com/wesnoth/wesnoth/blob/dbf3331e9a99e75ca0c16009169eebeddb9c1db1/src/multiplayer_connect_engine.cpp#L155

From inspecting the save files generated while testing this issue,
it's not clear if it could have actually caused a problem in game,
but it addresses an issue raised by SlowThinker on the bug tracker:

https://gna.org/bugs/index.php?21800

and does indeed fix a minor shortcoming of debug mode in mp connect
engine.
  • Loading branch information
cbeck88 committed May 19, 2014
1 parent 9dae74c commit eba19db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multiplayer_connect_engine.cpp
Expand Up @@ -153,7 +153,7 @@ connect_engine::connect_engine(game_display& disp, game_state& state,
side_str);
user_team_names_.push_back(user_team_name.t_str().to_serialized());

if (side["allow_player"].to_bool(true)) {
if (side["allow_player"].to_bool(true) || game_config::debug) {
player_teams_.push_back(user_team_name.str());
}
}
Expand Down

0 comments on commit eba19db

Please sign in to comment.