From f11eb62ffd5a0fc7405439f4b4f89a580a93701c Mon Sep 17 00:00:00 2001 From: KikooDX Date: Fri, 17 Dec 2021 19:02:59 +0100 Subject: [PATCH] replace some floats with ints --- src/player.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/player.c b/src/player.c index 4abad17..7a7f42d 100644 --- a/src/player.c +++ b/src/player.c @@ -91,8 +91,8 @@ player_draw(struct Player *p) void player_move(struct Player *p, struct Vec spd) { - float sign_x = sign(spd.x); - const float sign_y = sign(spd.y); + int sign_x = sign(spd.x); + const int sign_y = sign(spd.y); if (!sign_x && !sign_y) sign_x = 1.0f; p->pos.x += spd.x;