forked from github/server
rename hunt to follow_ship, because why was it ever called anything else?
This commit is contained in:
parent
3de0426b86
commit
f018016feb
|
@ -94,7 +94,6 @@ extern "C" {
|
||||||
int reserve_cmd(struct unit *u, struct order *ord);
|
int reserve_cmd(struct unit *u, struct order *ord);
|
||||||
int reserve_self(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 claim_cmd(struct unit *u, struct order *ord);
|
||||||
int follow_cmd(struct unit *u, struct order *ord);
|
|
||||||
|
|
||||||
void nmr_warnings(void);
|
void nmr_warnings(void);
|
||||||
|
|
||||||
|
|
|
@ -2477,7 +2477,7 @@ static direction_t hunted_dir(attrib * at, int id)
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hunt(unit * u, order * ord)
|
static int follow_ship(unit * u, order * ord)
|
||||||
{
|
{
|
||||||
region *rc = u->region;
|
region *rc = u->region;
|
||||||
size_t bytes;
|
size_t bytes;
|
||||||
|
@ -2615,7 +2615,7 @@ static void move_hunters(void)
|
||||||
break;
|
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;
|
up = &r->units;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue