Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] (PR#9871) autosize parameter for mapgen

[Freeciv-Dev] (PR#9871) autosize parameter for mapgen

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9871) autosize parameter for mapgen
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 29 Aug 2004 22:16:10 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: >

Mapgen creates xsize and ysize from the server's "size" variable.

But civworld uses mapgen, and should be able to let the user set the 
sizes directly.  Adding a paramter to mapgen makes this easy.

Note to Mike: letting the user set xsize/ysize directly is dangerous. 
xsize and ysize don't do what you'd expect them to do in hex and iso 
topologies.  You might be better off letting the user set an integer (or 
floating-point) width and height, then dividing the width by sqrt(2) and 
multiplying the height by sqrt(2) (TF_HEX or TF_ISO).  Then they'll 
probably get about what they expect.


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9871) autosize parameter for mapgen, Jason Short <=