diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-02-18 14:21:04 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-02-18 14:21:04 +0000 |
commit | 7c55b67cf4a9059b725021db032e277b74784377 (patch) | |
tree | 2c1dd391ed0afd98170a4e2cd03697cca88d004c /apps/plugins | |
parent | 2988b7a7e4b767cc4e2e00ab802fe8d653751c25 (diff) | |
download | rockbox-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/plugins')
-rw-r--r-- | apps/plugins/chopper.c | 4 |
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 | ||
205 | static void chopClearTerrain(struct CTerrain *ter) | 205 | static 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; |