From 2c2b3f7b1d8887072dcdfd4215b2501980677ef9 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 16 Jun 2006 17:16:42 +0000 Subject: [PATCH] Fix the previous revision. --- src/lib/common/move.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/common/move.c b/src/lib/common/move.c index b4d7ecc9f..f6e338d78 100644 --- a/src/lib/common/move.c +++ b/src/lib/common/move.c @@ -63,8 +63,10 @@ sector_mcost(struct sctstr *sp, int mobtype) return -1.0; /* linear function in rail, base at 0%, base/100 at 100% */ cost = base * (1.0 - 0.0099 * sp->sct_rail); - } else + } else { CANT_REACH(); + cost = base; + } if (CANT_HAPPEN(cost < 0)) cost = 0; -- 2.43.0