forked from github/server
change ship_allowed constants just a little bit
This commit is contained in:
parent
5535beed61
commit
546ffe87b8
|
@ -167,7 +167,7 @@ void score(void)
|
|||
fprintf(scoreFP, "(%s) ", score);
|
||||
fprintf(scoreFP, "%30.30s (%3.3s) %5s (%3d)\n",
|
||||
f->name,
|
||||
rc_name_s(f->race, NAME_SINGULAR),
|
||||
f->race->_name,
|
||||
factionid(f),
|
||||
f->age);
|
||||
}
|
||||
|
|
|
@ -836,7 +836,7 @@ static void drifting_ships(region * r)
|
|||
region *rn;
|
||||
dir = (direction_t)((d + d_offset) % MAXDIRECTIONS);
|
||||
rn = rconnect(r, dir);
|
||||
if (rn != NULL && fval(rn->terrain, SAIL_INTO) && check_ship_allowed(sh, rn) > 0) {
|
||||
if (rn != NULL && fval(rn->terrain, SAIL_INTO) && check_ship_allowed(sh, rn) >= 0) {
|
||||
rnext = rn;
|
||||
if (!fval(rnext->terrain, SEA_REGION))
|
||||
break;
|
||||
|
|
|
@ -77,8 +77,8 @@ extern "C" {
|
|||
void move_cmd(struct unit * u, struct order * ord, bool move_on_land);
|
||||
int follow_ship(struct unit * u, struct order * ord);
|
||||
|
||||
#define SA_HARBOUR 2
|
||||
#define SA_COAST 1
|
||||
#define SA_HARBOUR 1
|
||||
#define SA_COAST 0
|
||||
#define SA_NO_INSECT -1
|
||||
#define SA_NO_COAST -2
|
||||
|
||||
|
|
Loading…
Reference in New Issue