replace some floats with ints

This commit is contained in:
KikooDX 2021-12-17 19:02:59 +01:00
parent e03464995b
commit f11eb62ffd
1 changed files with 2 additions and 2 deletions

View File

@ -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;