Show speak distance info on hud.

This commit is contained in:
Steve 2016-05-03 15:40:23 +01:00
parent 690e469ff3
commit c137ef1fde
1 changed files with 9 additions and 0 deletions

View File

@ -515,6 +515,15 @@ static void drawDistancesInfo(void)
y += 25;
}
if (battle.messageSpeaker)
{
distance = distanceToKM(player->x, player->y, battle.messageSpeaker->x, battle.messageSpeaker->y);
drawText(SCREEN_WIDTH - 15, y, 14, TA_RIGHT, colors.white, "%s: %.2fkm", battle.messageSpeaker->name, distance);
y += 25;
}
}
static void drawHudMessages(void)