From 366f0feeaa27d48dde66d85854902120f6296326 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 8 Jul 2012 19:15:06 -0700 Subject: [PATCH] need to mark ships for fishing even if not drifting (this code is bad) --- src/kernel/move.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/move.c b/src/kernel/move.c index 8b3572f6d..3113a1c58 100644 --- a/src/kernel/move.c +++ b/src/kernel/move.c @@ -692,7 +692,7 @@ static float damage_drift(void) static void drifting_ships(region * r) { 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)) { ship **shp = &r->ships; @@ -709,7 +709,7 @@ static void drifting_ships(region * r) } /* 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; continue; }