Indented with src/scripts/indent-emp.
This commit is contained in:
parent
5f263a7753
commit
9b7adfbecc
437 changed files with 52211 additions and 51052 deletions
|
@ -45,13 +45,13 @@
|
|||
double
|
||||
sector_mcost(struct sctstr *sp, int do_bonus)
|
||||
{
|
||||
double d;
|
||||
double d;
|
||||
|
||||
if (!(d = dchr[sp->sct_type].d_mcst))
|
||||
return -1.0;
|
||||
|
||||
/* Note, the best you can get is a 1.0 here. */
|
||||
|
||||
|
||||
if (do_bonus == MOB_ROAD) {
|
||||
d = d / (1.0 + ((double)sp->sct_road / 122.0));
|
||||
} else if (do_bonus == MOB_RAIL) {
|
||||
|
@ -61,15 +61,14 @@ sector_mcost(struct sctstr *sp, int do_bonus)
|
|||
d = 2.0;
|
||||
}
|
||||
if (d < 1.0)
|
||||
d = 1.0;
|
||||
d = 1.0;
|
||||
if (dchr[sp->sct_type].d_mcst < 25)
|
||||
d = (d * 100.0 - (double)sp->sct_effic) / 500.0;
|
||||
d = (d * 100.0 - (double)sp->sct_effic) / 500.0;
|
||||
/* d = (200.0 + (d - 3.0) * (double)sp->sct_effic) / 500.0;*/
|
||||
else
|
||||
d = (d * 10.0 - (double)sp->sct_effic) / 115;
|
||||
|
||||
|
||||
if (d <= 0.0 || d < MIN_MOBCOST)
|
||||
return MIN_MOBCOST;
|
||||
return d;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue