Fix the previous revision.

This commit is contained in:
Markus Armbruster 2006-06-16 17:16:42 +00:00
parent 78d36b8a3e
commit 2c2b3f7b1d

View file

@ -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;