Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] (PR#9821) enum values saved in savegame
Home

[Freeciv-Dev] (PR#9821) enum values saved in savegame

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9821) enum values saved in savegame
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 26 Aug 2004 11:00:12 -0700
Reply-to: rt@xxxxxxxxxxx

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

Several enumeration values are saved directly in the savegame.

I am to blame here.  The orders type is saved as an enum value, as is 
the direction of an order.  The latter is the bigger problem since this 
is one of the only known dependencies on the direction enum ordering.

Surely there are other such dependencies.  They should all be removed 
IMO.  This is as simple as using a switch statement.  Only problem is 
that it is most convenient to save orders data as a single string, one 
character per entry, but this won't work easily with directions since 
they have 2 characters.

jason




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9821) enum values saved in savegame, Jason Short <=