diff --git a/src/world/entities.c b/src/world/entities.c index 8c7f959..a642b2b 100644 --- a/src/world/entities.c +++ b/src/world/entities.c @@ -435,7 +435,7 @@ static void moveEntity(void) if (!(self->flags & (EF_KILL_OFFSCREEN | EF_NO_CLIP))) { self->x = limit(self->x, world.map.bounds.x, world.map.bounds.w + SCREEN_WIDTH - self->w); - self->y = limit(self->y, world.map.bounds.y, world.map.bounds.h + SCREEN_HEIGHT - self->h); + self->y = limit(self->y, world.map.bounds.y - (self->h - 1), world.map.bounds.h + SCREEN_HEIGHT - self->h); } }