Complete.Org: Mailing Lists: Archives: freeciv-dev: March 1999:
Re: [Freeciv-Dev] Fundamentalism
Home

Re: [Freeciv-Dev] Fundamentalism

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] Fundamentalism
From: Greg Wooledge <wooledge@xxxxxxxxxxx>
Date: Thu, 11 Mar 1999 18:17:16 -0500

David Pfitzner (dwp@xxxxxxxxxxxxxx) wrote:

> Doesn't adding the possibility for Fundamentalism mean changing 
> the government enumerated type?  (I don't think its there now...?)

Yes, it would.

> Adding Fundamentalism at the end of the enum would probably 
> be least incompatible, but still a bit iffy because [...]

... because of lines of code like this:

citytools.c:  if (gov <= G_COMMUNISM || pcity->size < 5) {
citytools.c:  if (gov > G_COMMUNISM)

There's some code in the game which assumes the governments IDs appear
in a certain order.  Finding it all could be a bit tedious (but it will
eventually have to be done if full customizability is to be a long-term
goal).

-- 
Greg Wooledge                    | Distributed.NET http://www.distributed.net/
wooledge@xxxxxxxxxxx             | because a CPU is a terrible thing to waste.
http://www.kellnet.com/wooledge/ |

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