flying units may leave a ship on the ocean.
This commit is contained in:
Enno Rehling 2020-08-08 15:10:44 +02:00
parent 73df4adde7
commit d5f3bf7aed

View file

@ -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;
}