Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2005:
[Freeciv-Dev] Re: (PR#14689) Resource patch, keeping savegame compatibil
Home

[Freeciv-Dev] Re: (PR#14689) Resource patch, keeping savegame compatibil

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jerome.Plut@xxxxxx
Subject: [Freeciv-Dev] Re: (PR#14689) Resource patch, keeping savegame compatibility
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 25 Nov 2005 09:37:23 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14689 >

Jerome Plut wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=14689 >
> 
> Here is a new patch (vs. SVN trunk) to handle terrain
> resources separately from specials. I've added a bit of code in
> savegame.c to preserve savegame compatibility:
>  - the order of the modifications bits (road, fallout, hut...) is now
>    saved into the savefile,
>  - when loading an older savefile, default order is used, and there is
>    an extra part to take care of special_1 and special_2.
> Again, this changes almost nothing for gameplay, except that it
> allows to define more than two different resource types for one
> terrain type. The patch is quite big, but a large part of it being due
> to some renames, maybe I could split it in two parts (there are not
> much code changes). The motivation of this is that it is a (small)
> step towards defining infrastructure (and so on) via ruleset.

If splitting it into two parts is possible that would be greatly desirable.

-jason





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