HUD distance calculation bug fix.

This commit is contained in:
Steve 2015-12-12 18:24:41 +00:00
parent 4fbdcd0af6
commit 99eb742d34
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ static float distanceToKM(int x1, int y1, int x2, int y2)
{ {
float distance; float distance;
distance = getDistance(player->x, player->y, player->target->x, player->target->y); distance = getDistance(x1, y1, x2, y2);
/* 2px = 1m approx */ /* 2px = 1m approx */
distance /= 2; distance /= 2;