[Freeciv-Dev] Re: vision_radius_sq for rndCiv
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
|
|