Don't draw message speaker indicators for player.
This commit is contained in:
parent
e196752efa
commit
0229a2dae7
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue