xconq ./ChangeLog kernel/run.c

kingdon@sources.redhat.com kingdon@sources.redhat.com
Sat May 18 13:55:00 GMT 2002


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).



More information about the Xconq-cvs mailing list