fix was bugged

This commit is contained in:
kdx 2023-03-20 18:58:42 +01:00
parent 5671f6ba12
commit 176ed005d8
1 changed files with 2 additions and 3 deletions

View File

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