mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 22:43:17 +00:00
fix mp wrong defautl controllers
the old code resulted in human sides beeing ai by default for stat-of-scenaro saves in the mp connect dialog.
This commit is contained in:
parent
cc526e9737
commit
3098c60aef
@ -869,7 +869,7 @@ side_engine::side_engine(const config& cfg, connect_engine& parent_engine,
|
||||
// Reserve a side for "current_player", unless the side
|
||||
// is played by an AI.
|
||||
set_controller(CNTR_RESERVED);
|
||||
} else if (allow_player_ && !parent_.params_.saved_game) {
|
||||
} else if (allow_player_) {
|
||||
set_controller(parent_.default_controller_);
|
||||
} else {
|
||||
// AI is the default.
|
||||
|
Loading…
x
Reference in New Issue
Block a user