Hi !
I have found a error in the calculation of the distance at line 549. X axe is
taken for both X and Y axes !
Please replace the line
var
distance=t.CalcXYDist({'x':t.attacks[a].xy[0],'y':t.attacks[a].xy[0]},{'x':t.Get
CityCoordsX(t.attacks[a]['fromCity']),'y':t.GetCityCoordsX(t.attacks[a]['fromCit
y'])});
by this one :
var
distance=t.CalcXYDist({'x':t.attacks[a].xy[0],'y':t.attacks[a].xy[1]},{'x':t.Get
CityCoordsX(t.attacks[a]['fromCity']),'y':t.GetCityCoordsY(t.attacks[a]['fromCit
y'])});
Thanks !
Regards.
Original issue reported on code.google.com by sylvain....@gmail.com on 11 Jan 2012 at 1:47
Original issue reported on code.google.com by
sylvain....@gmail.com
on 11 Jan 2012 at 1:47