Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2000:
[Freeciv-Dev] Re: `city will grow' warning patch
Home

[Freeciv-Dev] Re: `city will grow' warning patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: `city will grow' warning patch
From: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Date: Wed, 14 Jun 2000 13:57:20 -0400

At 2000/06/04 04:49 , Tomasz Wegrzanowski wrote:
>This patch can cut a lot of micro-management,
>adding more convienience to gameplay.
>
>Every time it seems that next turn city will grow, it issues warning.
>It does not if city will grow by rapture because
>  a) it is 95% times not a problem, city won't disorder
>  b) it would flood console if player used 100%-luxury policy

I like this.  Attached is a patch which fixes a bug and does some improvement:

- Re-coded to avoid floating point exceptions.

- Moved entire thing (plus the "throttle" test/notification) to later in
the end-turn processing, so as to make the growth prediction more reliable.

- Since growth prediction is still not completely reliable, changed some of
the wording ("will" --> "may").

Attachment: willgrow-6.diff
Description: Text document

jjm

[Prev in Thread] Current Thread [Next in Thread]