View Single Post
  #11  
Old May 19th, 2009, 05:10 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Diagonal Distance/Range

Quote:
Originally Posted by Micah View Post
I think the "if (dx>0...)" bits subtract 1 from the range for each of those pairs that are true
Yeah. Normally, arrows would ignore diagonal movement and range would be determined as if they'd fly all the way to the front and then all the way to the side. That's the Manhattan metric, like a taxi cab that has to calculate distance by moving through the city blocks. If there is a greater amount of diagonal movement involved, though, then the game acknowledges that and allows for a little leeway by reducing the total distance a bit.

I'd think that this formula was chosen to speed up processing mostly.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote