ships on a ROUTE can drift.

This commit is contained in:
Enno Rehling 2020-09-24 20:11:45 +02:00
parent d7d3b5d730
commit 65c05f37d2
1 changed files with 2 additions and 2 deletions

View File

@ -2192,8 +2192,8 @@ void move_cmd_ex(unit * u, order * ord, const char *directions)
init_order(ord, u->faction->locale);
}
if (u->ship && u == ship_owner(u->ship)) {
bool drifting = (getkeyword(ord) == K_MOVE);
sail(u, ord, drifting);
keyword_t kwd = getkeyword(ord);
sail(u, ord, (kwd == K_MOVE || kwd == K_ROUTE));
}
else {
travel(u, ord);