don't let the ai choose their advancements off-turn
this gives errors when attempting to load the "ai state" for that side. In particular when its currently another ai sides turn so that another "ai state" is already loaded.
This commit is contained in:
parent
444c0a4182
commit
dc61150bec
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ namespace
|
|||
{
|
||||
res = advance_unit_dialog(loc_);
|
||||
}
|
||||
else if(t.is_local_ai() || t.is_network_ai() || t.is_empty())
|
||||
else if(is_current_side && (t.is_local_ai() || t.is_network_ai() || t.is_empty()))
|
||||
{
|
||||
res = randomness::generator->get_random_int(0, nb_options_-1);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue