Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2001:
[Freeciv-Dev] [PATCH] leftover unhappiness
Home

[Freeciv-Dev] [PATCH] leftover unhappiness

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv-Dev List <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] [PATCH] leftover unhappiness
From: "Mike Z. Jing" <jing@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 18 May 2001 14:38:52 -0400

This is just a combination of two patches I submitted earlier.

With this patch, leftover unhappiness factors (mostly arise when
empire_size_inc is non-zero in government.ruleset) is no longer discarded
when all citizens in a city become unhappy.  They are now saved in a new
array ppl_residue[] and has to be dealt with first before any citizen in
that city can become content (or happy).

It also puts a cap on the luxuries actually usable by a city: twice the
city size.  Anything above this amount has no effect.  This is for Civ2
compatibility.

Note that it does NOT affect the gameplay under the default
rulesets.  So please apply if there are no bugs in the patch.

Mike

Attachment: leftover_unhappiness.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] [PATCH] leftover unhappiness, Mike Z. Jing <=