From 404691c5dbbe7b8715e71c5a473c56e35ab8aeda Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 17 Dec 2017 14:33:18 +0100 Subject: [PATCH] delete unused define and code for insects. --- src/move.c | 5 +---- src/move.h | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/move.c b/src/move.c index 4cc15c9bf..1502f6243 100644 --- a/src/move.c +++ b/src/move.c @@ -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 { diff --git a/src/move.h b/src/move.h index 535c76bb2..d3a5d1e0d 100644 --- a/src/move.h +++ b/src/move.h @@ -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);