forked from github/server
flying units may leave a ship on the ocean.
This commit is contained in:
parent
73df4adde7
commit
d5f3bf7aed
1 changed files with 1 additions and 1 deletions
|
@ -880,7 +880,7 @@ int leave_cmd(unit * u, struct order *ord)
|
|||
}
|
||||
|
||||
if (fval(r->terrain, SEA_REGION) && u->ship) {
|
||||
if (!fval(u_race(u), RCF_SWIM)) {
|
||||
if (!fval(u_race(u), RCF_SWIM|RCF_FLY)) {
|
||||
cmistake(u, ord, 11, MSG_MOVE);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue