1
0
Fork 0
forked from len0rd/rockbox

Fixed an off-by-one bug that caused the nasty crash on archos, and wrong limit check.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12395 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2007-02-18 14:21:04 +00:00
parent 2988b7a7e4
commit 7c55b67cf4

View file

@ -204,7 +204,7 @@ static void chopDrawPlayer(int x,int y) /* These are SCREEN coords, not world! *
static void chopClearTerrain(struct CTerrain *ter)
{
ter->iNodesCount = -1;
ter->iNodesCount = 0;
}
@ -381,7 +381,7 @@ static void chopAddParticle(int x,int y,int sx,int sy)
while(mParticles[i].bIsActive && i < NUMBER_OF_PARTICLES)
i++;
if(i==NUMBER_OF_BLOCKS)
if(i==NUMBER_OF_PARTICLES)
return;
mParticles[i].bIsActive = 1;