Don't draw message speaker indicators for player.

This commit is contained in:
Steve 2016-04-26 13:47:06 +01:00
parent e196752efa
commit 0229a2dae7
2 changed files with 2 additions and 2 deletions

View File

@ -486,7 +486,7 @@ static void drawTargetRects(Entity *e)
SDL_RenderDrawRect(app.renderer, &r);
}
if (e == battle.messageSpeaker && battle.stats[STAT_TIME] % 60 < 40)
if (e == battle.messageSpeaker && e != player && battle.stats[STAT_TIME] % 60 < 40)
{
r.x = e->x - (size / 2) - battle.camera.x;
r.y = e->y - (size / 2) - battle.camera.y;

View File

@ -394,7 +394,7 @@ static void drawPlayerTargeter(void)
blitRotated(targetPointer, x - battle.camera.x, y - battle.camera.y, angle);
}
if (battle.messageSpeaker)
if (battle.messageSpeaker && battle.messageSpeaker != player)
{
angle = getAngle(player->x, player->y, battle.messageSpeaker->x, battle.messageSpeaker->y);
x = player->x;