From 7c55b67cf4a9059b725021db032e277b74784377 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 18 Feb 2007 14:21:04 +0000 Subject: 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 --- apps/plugins/chopper.c | 4 ++-- 1 file 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; -- cgit v1.1