change ship_allowed constants just a little bit

This commit is contained in:
Enno Rehling 2016-06-10 18:00:22 +02:00
parent 5535beed61
commit 546ffe87b8
3 changed files with 4 additions and 4 deletions

View File

@ -167,7 +167,7 @@ void score(void)
fprintf(scoreFP, "(%s) ", score); fprintf(scoreFP, "(%s) ", score);
fprintf(scoreFP, "%30.30s (%3.3s) %5s (%3d)\n", fprintf(scoreFP, "%30.30s (%3.3s) %5s (%3d)\n",
f->name, f->name,
rc_name_s(f->race, NAME_SINGULAR), f->race->_name,
factionid(f), factionid(f),
f->age); f->age);
} }

View File

@ -836,7 +836,7 @@ static void drifting_ships(region * r)
region *rn; region *rn;
dir = (direction_t)((d + d_offset) % MAXDIRECTIONS); dir = (direction_t)((d + d_offset) % MAXDIRECTIONS);
rn = rconnect(r, dir); 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; rnext = rn;
if (!fval(rnext->terrain, SEA_REGION)) if (!fval(rnext->terrain, SEA_REGION))
break; break;

View File

@ -77,8 +77,8 @@ extern "C" {
void move_cmd(struct unit * u, struct order * ord, bool move_on_land); void move_cmd(struct unit * u, struct order * ord, bool move_on_land);
int follow_ship(struct unit * u, struct order * ord); int follow_ship(struct unit * u, struct order * ord);
#define SA_HARBOUR 2 #define SA_HARBOUR 1
#define SA_COAST 1 #define SA_COAST 0
#define SA_NO_INSECT -1 #define SA_NO_INSECT -1
#define SA_NO_COAST -2 #define SA_NO_COAST -2