summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/player.c4
1 files changed, 2 insertions, 2 deletions
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) { \