(prod, upd_buildeff): Truncated work to even before sector building.

Fix.
This commit is contained in:
Markus Armbruster 2004-04-08 16:31:31 +00:00
parent 5a0216893f
commit b985192f6f
2 changed files with 4 additions and 4 deletions

View file

@ -141,7 +141,7 @@ prod(void)
}
if (work > 999) work = 999;
}
bwork = (int)((double)work / 2.0);
bwork = work / 2;
if (sect.sct_off)
continue;
@ -207,7 +207,7 @@ prod(void)
bwork -= twork;
eff += twork;
}
work = work / 2 + bwork;
work = (work + 1) / 2 + bwork;
if (eff < 60 || (type != SCT_ENLIST && eff < 61))
continue;