Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] Re: (PR#9788) RfP: G_MAGIC is evil
Home

[Freeciv-Dev] Re: (PR#9788) RfP: G_MAGIC is evil

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9788) RfP: G_MAGIC is evil
From: "Marko Lindqvist" <marko.lindqvist@xxxxxxxxxxx>
Date: Tue, 24 Aug 2004 07:14:05 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9788 >

Jason Short wrote:

> <URL: http://rt.freeciv.org/Ticket/Display.html?id=9788 >
> 
> government.h has a #define G_MAGIC 127.  This value should be changed to 
> MAX_NUM_GOVERNMENTS.  The value isn't magic at all, it's just a limit on 
> the number of governments.

  Max size of city too (why is this defined this way???):
#define G_CITY_SIZE_FREE          G_MAGIC

  IIRC revolution code also needed two special flag values, so G_MAGIC 
had to have different value from G_LAST to distinguish between the two. 
This has been since cleaned, I hope.


  - Caz




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