Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] (PR#8754) effects patch
Home

[Freeciv-Dev] (PR#8754) effects patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8754) effects patch
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Thu, 20 May 2004 05:15:06 -0700
Reply-to: rt@xxxxxxxxxxx

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

> [per@xxxxxxxxxxx - Thu May 20 07:05:15 2004]:
> 
> On Wed, 19 May 2004, Vasco Alexandre da Silva Costa wrote:
> > This patch adds support for everlasting wonders. Like Manhattan. Apply
> > after effects2.diff and implement2.diff.
> 
> I do not understand how this patch can work at all. It adds two unused
> functions, neither of which carry any references to any everlastingness?
> Or have you appropriated game.global_wonders for this purpose?

These functions are for wonder effects which last after the wonder has
been destroyed.

'grep B_MANHATTEN */*.c', 'grep B_APOLLO */*.c'. The current code checks
if "game.global_wonders[wonder_id] != 0". What does this mean? It means
that the wonder has been built. "game.global_wonders[wonder_id]" has the
id of the city the wonder was built on, it is 0 if it wasn't built. Even
the the wonder or city is destroyed, "game.global_wonders[wonder_id]"
keeps the city id of the city it was built in.





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