summaryrefslogtreecommitdiff
path: root/src/player.c
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-03-17 19:03:59 +0100
committerkdx <kikoodx@paranoici.org>2023-03-17 19:03:59 +0100
commit5a84257033fe83d08b11ec845fbee1fa7bc56ca4 (patch)
treece71232ddfad2204f4f3ed0111f0c4e3af448d27 /src/player.c
parentf106977f6b0fce888306f4af29c847857a2e02be (diff)
downloadhyperultra-5a84257033fe83d08b11ec845fbee1fa7bc56ca4.tar.gz
flawless map system
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player.c b/src/player.c
index 9281357..485296c 100644
--- a/src/player.c
+++ b/src/player.c
@@ -46,7 +46,7 @@ player_update(Entity *this, Game *g)
}
entity_move(this, g);
- if (this->vel[0] == 0.0)
+ if (this->vel[0] == 0.0 && this->vel[1] >= -0.0)
this->player.dirx *= -1;
}