From f018016febcf5cb0b99e7032854ce78dbcbdf8ed Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 21 Sep 2015 14:48:08 +0200 Subject: [PATCH] rename hunt to follow_ship, because why was it ever called anything else? --- src/laws.h | 1 - src/move.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/laws.h b/src/laws.h index 0a677f384..bc9afc106 100755 --- a/src/laws.h +++ b/src/laws.h @@ -94,7 +94,6 @@ extern "C" { int reserve_cmd(struct unit *u, struct order *ord); int reserve_self(struct unit *u, struct order *ord); int claim_cmd(struct unit *u, struct order *ord); - int follow_cmd(struct unit *u, struct order *ord); void nmr_warnings(void); diff --git a/src/move.c b/src/move.c index 459776915..37bd8eb21 100644 --- a/src/move.c +++ b/src/move.c @@ -2477,7 +2477,7 @@ static direction_t hunted_dir(attrib * at, int id) return d; } -static int hunt(unit * u, order * ord) +static int follow_ship(unit * u, order * ord) { region *rc = u->region; size_t bytes; @@ -2615,7 +2615,7 @@ static void move_hunters(void) break; } - if (!fval(u, UFL_LONGACTION) && !LongHunger(u) && hunt(u, ord)) { + if (!fval(u, UFL_LONGACTION) && !LongHunger(u) && follow_ship(u, ord)) { up = &r->units; break; }