diff options
author | kdx <kikoodx@paranoici.org> | 2023-03-18 19:15:05 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-03-18 19:15:05 +0100 |
commit | 11b10c227cfccec717b8b7206f33a8bce24a54dc (patch) | |
tree | 750c1f9daf319934f2ca1729b63e0fecc08bbf1d /src/entity.c | |
parent | ef3cf8e9df99856d4c322afd17fed5e3e15f383b (diff) | |
download | hyperultra-11b10c227cfccec717b8b7206f33a8bce24a54dc.tar.gz |
u dedge
Diffstat (limited to 'src/entity.c')
-rw-r--r-- | src/entity.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/entity.c b/src/entity.c index 001b9e1..9b378aa 100644 --- a/src/entity.c +++ b/src/entity.c @@ -47,6 +47,7 @@ entity_place_meeting(Entity *this, Game *g, EntityType type) void entity_move(Entity *this, Game *g) { + this->bonk_ceiling = false; if (entity_collide(this, g, 0, 0)) { this->vel[0] = 0.0; this->vel[1] = 0.0; @@ -67,6 +68,8 @@ entity_move(Entity *this, Game *g) this->pos[a] -= sign; this->rem[a] = 0.0; this->vel[a] = 0.0; + if (a == 1 && sign == -1) + this->bonk_ceiling = true; break; } spd -= sign; |