diff options
author | kdx <kikoodx@paranoici.org> | 2023-03-20 18:58:42 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-03-20 18:59:48 +0100 |
commit | 176ed005d8bef40bd8fbf7e7bb82536fa7286ba9 (patch) | |
tree | d127a067dbc8fcc813dbff0ab1c20d96d589fe20 | |
parent | 5671f6ba122a281452f16ee222fbd80fb949ea0a (diff) | |
download | hyperultra-176ed005d8bef40bd8fbf7e7bb82536fa7286ba9.tar.gz |
fix was bugged
-rw-r--r-- | src/player.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/player.c b/src/player.c index dba2b44..f1dfc7f 100644 --- a/src/player.c +++ b/src/player.c @@ -17,11 +17,10 @@ IMPL_UPDATE() { if (fabs(this->player.scale_x - 1.0) < 0.05) this->player.scale_x = 1.01; if (fabs(this->player.scale_y - 1.0) < 0.05) this->player.scale_y = 1.01; - if (this->vel[1] == 0.0 && on_ground) + if (this->vel[1] >= 0.0 && on_ground) { this->player.rot_speed = 0.0; - if (on_ground) this->player.angle = 0.0; - else { + } else { this->player.angle += this->player.rot_speed; this->player.rot_speed *= 0.95; } |