From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28596 invoked by alias); 18 May 2002 20:55:48 -0000 Mailing-List: contact xconq-cvs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: , Sender: xconq-cvs-owner@sources.redhat.com List-Subscribe: Received: (qmail 28586 invoked by uid 9065); 18 May 2002 20:55:48 -0000 Date: Sat, 18 May 2002 13:55:00 -0000 Message-ID: <20020518205548.28584.qmail@sources.redhat.com> From: kingdon@sources.redhat.com To: xconq-cvs@sourceware.cygnus.com Subject: xconq ./ChangeLog kernel/run.c X-SW-Source: 2002/txt/msg00162.txt.bz2 List-Id: 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).