replace some floats with ints
This commit is contained in:
parent
e03464995b
commit
f11eb62ffd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue