From f3e785b8098789d853715c30c1543d4b4982c05d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 08 Aug 2021 15:20:39 -0400 Subject: player: Fix eyes masking Wow. --- (limited to 'src') diff --git a/src/player.c b/src/player.c index 162434a..4232842 100644 --- a/src/player.c +++ b/src/player.c @@ -322,7 +322,7 @@ mf_player_render(struct mf_player *p, SDL_Renderer *renderer) do { \ hy = round(sqrt((r-0.5)*(r-0.5) - \ (X+fx-ox-0.5)*(X+fx-ox-0.5)) + 0.5); \ - if (Y - oy >= 0-hy || Y - oy <= hy) { \ + if (Y - oy >= 0-hy && Y - oy <= hy) { \ if (SDL_RenderDrawPoint(renderer, \ cx + fx - ox + X, cy - oy + Y) \ < 0) { \ @@ -334,7 +334,7 @@ mf_player_render(struct mf_player *p, SDL_Renderer *renderer) } \ hy = round(sqrt((r-0.5)*(r-0.5) - \ (X+fx+ox-0.5)*(X+fx+ox-0.5)) + 0.5); \ - if (Y - oy >= 0-hy || Y - oy <= hy) { \ + if (Y - oy >= 0-hy && Y - oy <= hy) { \ if (SDL_RenderDrawPoint(renderer, \ cx + fx + ox + X, cy - oy + Y) \ < 0) { \ -- cgit v0.9.1