mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 19:02:00 +00:00
end movement even if AI has made an error in calculation
This commit is contained in:
parent
a32b17aed1
commit
92f19a4256
@ -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…
x
Reference in New Issue
Block a user