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.zip rockbox-7c55b67cf4a9059b725021db032e277b74784377.tar.gz rockbox-7c55b67cf4a9059b725021db032e277b74784377.tar.bz2 rockbox-7c55b67cf4a9059b725021db032e277b74784377.tar.xz | |
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 d636b2d..1fec7bb 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! * 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; |