end movement even if AI has made an error in calculation
This commit is contained in:
parent
a32b17aed1
commit
92f19a4256
1 changed files with 5 additions and 2 deletions
|
@ -437,8 +437,11 @@ gamemap::location ai_interface::move_unit_partial(location from, location to,
|
|||
steps.erase(i,steps.end());
|
||||
break;
|
||||
} else {
|
||||
if (!ignore_zocs)
|
||||
LOG_STREAM(err, ai) << "AI tried to skirmish with non-skirmisher\n";
|
||||
if (!ignore_zocs){
|
||||
LOG_STREAM(err, ai) << "AI tried to skirmish with non-skirmisher\n";
|
||||
to = *i;
|
||||
steps.erase(i,steps.end());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue