This is the mail archive of the
xconq-cvs@sources.redhat.com
mailing list for the Xconq project.
xconq ./ChangeLog kernel/run.c
- From: kingdon at sources dot redhat dot com
- To: xconq-cvs at sourceware dot cygnus dot com
- Date: 18 May 2002 20:55:48 -0000
- Subject: xconq ./ChangeLog kernel/run.c
CVSROOT: /cvs/xconq
Module name: xconq
Changes by: kingdon@sources.redhat.com 2002-05-18 13:55:48
Modified files:
. : ChangeLog
kernel : run.c
Log message:
* kernel/run.c (run_advanced_units, allocate_used_cells): Rewrite
multiplicative code to use integer arithmetic in the way that most
of xconq does (returning 0 and starving could be because the old
code would basically hope that ((float)100 / 100.0) was 1, but if
integer 100 rounds down a bit when it becomes float, that would
lose). This also should fix a bug whereby granaries and the like
do nothing in advances.g (the code was taking 150% and rounding it
to the integer 1).