Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2006:
[Freeciv-Dev] Re: vision_radius_sq for rndCiv
Home

[Freeciv-Dev] Re: vision_radius_sq for rndCiv

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: banjo <banjo@xxxxxxxxxx>, Freeciv-Dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: vision_radius_sq for rndCiv
From: Jason Dorje Short <jdorje@xxxxxxxxx>
Date: Mon, 19 Jun 2006 11:57:42 -0400

banjo wrote:
hey guys

whilst updating rndCiv for the latest svn, ive come across
vision_radius_sq in units.ruleset.  Hmmmm, can someone please
tell me how to translate old style vision_range into the new
vision_radius_sq ?

You can't directly translate. Old visions were squares, while new ones are circles. For small vision radiuses it does translate easily but for large ones you can only approximate. Best way to approximate is to square it and multiply by two. 1 becomes 2, 2 becomes 8. Anything larger you should play around with to get the radius you want.

jason



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