forked from github/server
Angriffe von Schiffen aus nur verbieten, wenn die Region bewacht wird.
This commit is contained in:
parent
050092015e
commit
ab4eaabc09
|
@ -3598,17 +3598,19 @@ init_battle(region * r, battle **bp)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fehler: "Das Schiff muß erst verlassen werden" */
|
|
||||||
if (u->ship != NULL && rterrain(r) != T_OCEAN) {
|
|
||||||
cmistake(u, ord, 19, MSG_BATTLE);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (leftship(u)) {
|
if (is_guarded(r, u, GUARD_TRAVELTHRU)) {
|
||||||
cmistake(u, ord, 234, MSG_BATTLE);
|
/* Fehler: "Das Schiff muß erst verlassen werden" */
|
||||||
continue;
|
if (u->ship != NULL && rterrain(r) != T_OCEAN) {
|
||||||
}
|
cmistake(u, ord, 19, MSG_BATTLE);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (leftship(u)) {
|
||||||
|
cmistake(u, ord, 234, MSG_BATTLE);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Ende Fehlerbehandlung Angreifer */
|
/* Ende Fehlerbehandlung Angreifer */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue