Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2001:
[Freeciv-Dev] [PATCH] empire size penalty fix
Home

[Freeciv-Dev] [PATCH] empire size penalty fix

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] [PATCH] empire size penalty fix
From: "Mike Jing" <miky40@xxxxxxxxxxx>
Date: Mon, 19 Feb 2001 22:56:35 -0500
Reply-to: mike_jing@xxxxxxxxx

Looking more closely, I found the calculation of the empire size penalty is wrong when empire_size_inc>0. The second penalty should come at (basis + step + 1) cities, not (basis + step). For example, if cityfactor=14, basis would be 13 under Republic. And suppose empire_size_inc=2. Then the first penalty comes at 14 cities, and the next should be at 16 cities, not 15 as the code was written. In the case where empire_size_inc=1, you would get double penalty for going over the limit the first time, and that's wrong. This tiny patch fixes this problem.

Please apply.  Thanks.

Mike

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Attachment: empire_size_penalty_fix.diff
Description: Binary data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] [PATCH] empire size penalty fix, Mike Jing <=