summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-02-18 14:21:04 +0000
committerJens Arnold <amiconn@rockbox.org>2007-02-18 14:21:04 +0000
commit7c55b67cf4a9059b725021db032e277b74784377 (patch)
tree2c1dd391ed0afd98170a4e2cd03697cca88d004c /apps
parent2988b7a7e4b767cc4e2e00ab802fe8d653751c25 (diff)
downloadrockbox-7c55b67cf4a9059b725021db032e277b74784377.tar.gz
rockbox-7c55b67cf4a9059b725021db032e277b74784377.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/chopper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c
index d636b2db4e..1fec7bb1ab 100644
--- a/apps/plugins/chopper.c
+++ b/apps/plugins/chopper.c
@@ -204,7 +204,7 @@ static void chopDrawPlayer(int x,int y) /* These are SCREEN coords, not world! *
204 204
205static void chopClearTerrain(struct CTerrain *ter) 205static void chopClearTerrain(struct CTerrain *ter)
206{ 206{
207 ter->iNodesCount = -1; 207 ter->iNodesCount = 0;
208} 208}
209 209
210 210
@@ -381,7 +381,7 @@ static void chopAddParticle(int x,int y,int sx,int sy)
381 while(mParticles[i].bIsActive && i < NUMBER_OF_PARTICLES) 381 while(mParticles[i].bIsActive && i < NUMBER_OF_PARTICLES)
382 i++; 382 i++;
383 383
384 if(i==NUMBER_OF_BLOCKS) 384 if(i==NUMBER_OF_PARTICLES)
385 return; 385 return;
386 386
387 mParticles[i].bIsActive = 1; 387 mParticles[i].bIsActive = 1;