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:
parent
2988b7a7e4
commit
7c55b67cf4
1 changed files with 2 additions and 2 deletions
|
|
@ -204,7 +204,7 @@ static void chopDrawPlayer(int x,int y) /* These are SCREEN coords, not world! *
|
||||||
|
|
||||||
static void chopClearTerrain(struct CTerrain *ter)
|
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)
|
while(mParticles[i].bIsActive && i < NUMBER_OF_PARTICLES)
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
if(i==NUMBER_OF_BLOCKS)
|
if(i==NUMBER_OF_PARTICLES)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mParticles[i].bIsActive = 1;
|
mParticles[i].bIsActive = 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue