forked from github/server
delete unused define and code for insects.
This commit is contained in:
parent
ed75f4d21a
commit
404691c5db
|
@ -1837,10 +1837,7 @@ static void sail(unit * u, order * ord, region_list ** routep, bool drifting)
|
|||
reason = check_ship_allowed(sh, next_point);
|
||||
if (reason < 0) {
|
||||
/* for some reason or another, we aren't allowed in there.. */
|
||||
if (reason == SA_NO_INSECT) {
|
||||
ADDMSG(&f->msgs, msg_message("detectforbidden", "unit region", u, sh->region));
|
||||
}
|
||||
else if (check_leuchtturm(current_point, NULL)) {
|
||||
if (check_leuchtturm(current_point, NULL)) {
|
||||
ADDMSG(&f->msgs, msg_message("sailnolandingstorm", "ship region", sh, next_point));
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -90,8 +90,7 @@ extern "C" {
|
|||
|
||||
#define SA_HARBOUR 1
|
||||
#define SA_COAST 0
|
||||
#define SA_NO_INSECT -1
|
||||
#define SA_NO_COAST -2
|
||||
#define SA_NO_COAST -1
|
||||
|
||||
int check_ship_allowed(struct ship *sh, const struct region * r);
|
||||
direction_t drift_target(struct ship *sh);
|
||||
|
|
Loading…
Reference in New Issue