summaryrefslogtreecommitdiff
path: root/src/entity.c
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-03-18 23:40:10 +0100
committerkdx <kikoodx@paranoici.org>2023-03-18 23:41:16 +0100
commitb796e0bea418cc541257e17274b6fb14d4cb5ee8 (patch)
treed87ce38493e6af3e5c75a3171981310a20b46920 /src/entity.c
parent297ee77f926197504f8e0d7d6fcf0bf602cccd66 (diff)
downloadhyperultra-b796e0bea418cc541257e17274b6fb14d4cb5ee8.tar.gz
death particles
Diffstat (limited to 'src/entity.c')
-rw-r--r--src/entity.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/entity.c b/src/entity.c
index ef295a7..53ee9d3 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -48,6 +48,15 @@ void
entity_move(Entity *this, Game *g)
{
this->bonk_ceiling = false;
+ if (this->ignore_solids) {
+ for (int a = 0; a < 2; a++) {
+ const double sum = this->vel[a] + this->rem[a];
+ int spd = (int)sum;
+ this->rem[a] = sum - spd;
+ this->pos[a] += spd;
+ }
+ return;
+ }
if (entity_collide(this, g, 0, 0)) {
this->vel[0] = 0.0;
this->vel[1] = 0.0;