Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] (PR#9797) RfP: use T_UNKNOWN instead of T_GRASSLAND for no
Home

[Freeciv-Dev] (PR#9797) RfP: use T_UNKNOWN instead of T_GRASSLAND for no

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9797) RfP: use T_UNKNOWN instead of T_GRASSLAND for non-placed mapgen terrains
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 24 Aug 2004 11:02:01 -0700
Reply-to: rt@xxxxxxxxxxx

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

Mapgen inits all tiles to T_GRASSLAND, then overwrites them with other 
terrains.  T_GRASSLAND is thus just a flag meaning 
"terrain-not-placed-here".  This should be T_UNKNOWN instead.

See also PR#9627.  That patch has a

   #define T_NOT_PLACED T_UNKNOWN

and

   #define not_placed(x, y) (map_get_terrain(x, y) == T_NOT_PLACED)

jason




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