Edit : Fixed
Quote:
D2DVECTOR FakeCord;
FakeCord.x = playerCord.x+150;
FakeCord.y = abs(playerCord.y) + 150;
inline float DISTANCE_SQRT(long dx, long dy)
{
return ::sqrt((float)dx * dx + (float)dy * dy);
}
I think those are "PixelPositions". So you have to divide them by 100.0f to get the "real" coordinates.Quote:
cant be larger then 40 on mount, 25 on foot - +150 +150 is a lot larger then +/- 25Code:inline float DISTANCE_SQRT(long dx, long dy) { return ::sqrt((float)dx * dx + (float)dy * dy); }