From 6f69f9a56aa5ef97b77f531b2f3cd71e986af526 Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 16 Feb 2018 08:08:52 +0000 Subject: [PATCH] Always add to quadtree if not dead or teleporting. --- src/world/entities.c | 8 ++------ src/world/entities.h | 4 ++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/world/entities.c b/src/world/entities.c index 4026e04..46e0fb2 100644 --- a/src/world/entities.c +++ b/src/world/entities.c @@ -228,13 +228,9 @@ void doEntities(void) self->spriteFrame = 0; self->die(); } - - if (!(self->flags & (EF_TELEPORTING | EF_GONE))) - { - addToQuadtree(self, &world.quadtree); - } } - else if (self->alive == ALIVE_DYING) + + if (!(self->flags & (EF_TELEPORTING | EF_GONE))) { addToQuadtree(self, &world.quadtree); } diff --git a/src/world/entities.h b/src/world/entities.h index 83c17bb..8e0531e 100644 --- a/src/world/entities.h +++ b/src/world/entities.h @@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "../common.h" -#define MAX_RIDERS 64 -#define MAX_TOUCHED 64 +#define MAX_RIDERS 256 +#define MAX_TOUCHED 256 extern Texture *getTexture(const char *filename); extern void blitRect(SDL_Texture *texture, int x, int y, SDL_Rect *srcRect, int center);