mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 10:43:47 +00:00
Fix main_loop stage being duplicated in MP
This commit is contained in:
parent
f545fbcbe8
commit
56a99175da
@ -1027,7 +1027,7 @@ config side_engine::new_config() const
|
|||||||
assert(controller_ != CNTR_LAST);
|
assert(controller_ != CNTR_LAST);
|
||||||
if(controller_ == CNTR_COMPUTER && allow_player_) {
|
if(controller_ == CNTR_COMPUTER && allow_player_) {
|
||||||
// Do not import default ai cfg otherwise - all is set by scenario config.
|
// Do not import default ai cfg otherwise - all is set by scenario config.
|
||||||
res.add_child("ai", ai::configuration::get_ai_config_for(ai_algorithm_));
|
res.add_child_at("ai", config_of("ai_algorithm", ai_algorithm_), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(controller_ == CNTR_EMPTY) {
|
if(controller_ == CNTR_EMPTY) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user