Debugging stuff.
This commit is contained in:
parent
68fff35e1a
commit
443255baea
|
@ -654,6 +654,7 @@ static SDL_Rect *getCurrentSprite(void)
|
|||
|
||||
if (world.bob->spriteFrame >= s->numFrames)
|
||||
{
|
||||
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_WARN, "WARNING: %s (%d) bad sprite frames - %d > %d\n", world.bob->name, world.bob->type, world.bob->spriteFrame, s->numFrames);
|
||||
world.bob->spriteFrame = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -191,6 +191,7 @@ static SDL_Rect *getCurrentSprite(void)
|
|||
|
||||
if (self->spriteFrame >= s->numFrames)
|
||||
{
|
||||
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_WARN, "WARNING: %s (%d) bad sprite frames - %d > %d\n", self->name, self->type, self->spriteFrame, s->numFrames);
|
||||
self->spriteFrame = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -414,6 +414,7 @@ static SDL_Rect *getCurrentSprite(void)
|
|||
|
||||
if (self->spriteFrame >= s->numFrames)
|
||||
{
|
||||
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_WARN, "WARNING: %s (%d) bad sprite frames - %d > %d\n", self->name, self->type, self->spriteFrame, s->numFrames);
|
||||
self->spriteFrame = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -172,6 +172,7 @@ static SDL_Rect *getCurrentSprite(void)
|
|||
|
||||
if (self->spriteFrame >= s->numFrames)
|
||||
{
|
||||
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_WARN, "WARNING: %s (%d) bad sprite frames - %d > %d\n", self->name, self->type, self->spriteFrame, s->numFrames);
|
||||
self->spriteFrame = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -290,6 +290,7 @@ static SDL_Rect *getCurrentSprite(void)
|
|||
|
||||
if (self->spriteFrame >= s->numFrames)
|
||||
{
|
||||
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_WARN, "WARNING: %s (%d) bad sprite frames - %d > %d\n", self->name, self->type, self->spriteFrame, s->numFrames);
|
||||
self->spriteFrame = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -90,10 +90,8 @@ static void compareQuadtree(void)
|
|||
|
||||
for (e = world.entityHead.next ; e != NULL ; e = e->next) {numEnts++;}
|
||||
|
||||
printf("numEnts=%d, numCandidates=%d\n", numEnts, numCandidates);
|
||||
|
||||
if (numCandidates > numEnts)
|
||||
{
|
||||
exit(1);
|
||||
printf("WARNING: numEnts=%d, numCandidates=%d\n", numEnts, numCandidates);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue