Always add to quadtree if not dead or teleporting.
This commit is contained in:
parent
0a2cd17622
commit
6f69f9a56a
|
@ -228,17 +228,13 @@ 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)
|
||||
{
|
||||
addToQuadtree(self, &world.quadtree);
|
||||
}
|
||||
}
|
||||
|
||||
prev = self;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue