need to mark ships for fishing even if not drifting (this code is bad)

This commit is contained in:
Enno Rehling 2012-07-08 19:15:06 -07:00
parent f4761867cd
commit 366f0feeaa
1 changed files with 2 additions and 2 deletions

View File

@ -692,7 +692,7 @@ static float damage_drift(void)
static void drifting_ships(region * r) static void drifting_ships(region * r)
{ {
direction_t d; direction_t d;
if (get_param_int(global.parameters, "rules.ship.drifting", 1)==0) return; bool drift = get_param_int(global.parameters, "rules.ship.drifting", 1)!=0;
if (fval(r->terrain, SEA_REGION)) { if (fval(r->terrain, SEA_REGION)) {
ship **shp = &r->ships; ship **shp = &r->ships;
@ -709,7 +709,7 @@ static void drifting_ships(region * r)
} }
/* Schiff schon abgetrieben oder durch Zauber geschützt? */ /* Schiff schon abgetrieben oder durch Zauber geschützt? */
if (fval(sh, SF_DRIFTED) || is_cursed(sh->attribs, C_SHIP_NODRIFT, 0)) { if (!drift || fval(sh, SF_DRIFTED) || is_cursed(sh->attribs, C_SHIP_NODRIFT, 0)) {
shp = &sh->next; shp = &sh->next;
continue; continue;
} }