Fix the previous revision.
This commit is contained in:
parent
78d36b8a3e
commit
2c2b3f7b1d
1 changed files with 3 additions and 1 deletions
|
@ -63,8 +63,10 @@ sector_mcost(struct sctstr *sp, int mobtype)
|
||||||
return -1.0;
|
return -1.0;
|
||||||
/* linear function in rail, base at 0%, base/100 at 100% */
|
/* linear function in rail, base at 0%, base/100 at 100% */
|
||||||
cost = base * (1.0 - 0.0099 * sp->sct_rail);
|
cost = base * (1.0 - 0.0099 * sp->sct_rail);
|
||||||
} else
|
} else {
|
||||||
CANT_REACH();
|
CANT_REACH();
|
||||||
|
cost = base;
|
||||||
|
}
|
||||||
if (CANT_HAPPEN(cost < 0))
|
if (CANT_HAPPEN(cost < 0))
|
||||||
cost = 0;
|
cost = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue