diff options
| author | Bertrik Sikken <bertrik@sikken.nl> | 2011-10-15 20:38:08 +0000 |
|---|---|---|
| committer | Bertrik Sikken <bertrik@sikken.nl> | 2011-10-15 20:38:08 +0000 |
| commit | fe67a87885816448e78a99ef0cbe8fd331c3b103 (patch) | |
| tree | 29f3d6453ed3af2b8a4c35f27d6520de2d768da0 /apps/plugins/chopper.c | |
| parent | 2176fb38b61c72d09dc2b344f956a9b1c69c361d (diff) | |
| download | rockbox-fe67a87885816448e78a99ef0cbe8fd331c3b103.zip rockbox-fe67a87885816448e78a99ef0cbe8fd331c3b103.tar.gz rockbox-fe67a87885816448e78a99ef0cbe8fd331c3b103.tar.bz2 rockbox-fe67a87885816448e78a99ef0cbe8fd331c3b103.tar.xz | |
plugins: another round of making local functions static
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30758 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/chopper.c')
| -rw-r--r-- | apps/plugins/chopper.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c index 3d3b2d0..ef1f8aa 100644 --- a/apps/plugins/chopper.c +++ b/apps/plugins/chopper.c @@ -290,8 +290,7 @@ struct CTerrain mRoof; static void chopDrawParticle(struct CParticle *mParticle); static void chopDrawBlock(struct CBlock *mBlock); static void chopRenderTerrain(struct CTerrain *ter, bool isground); -void chopper_load(bool newgame); -void cleanup_chopper(void); +static void chopper_load(bool newgame); static void chopDrawPlayer(int x,int y) /* These are SCREEN coords, not world!*/ { @@ -335,7 +334,7 @@ static void chopClearTerrain(struct CTerrain *ter) } -int iR(int low,int high) +static int iR(int low,int high) { return low+rb->rand()%(high-low+1); } @@ -394,7 +393,7 @@ static void chopTerrainNodeDeleteAndShift(struct CTerrain *ter,int nodeIndex) } -int chopUpdateTerrainRecycling(struct CTerrain *ter) +static int chopUpdateTerrainRecycling(struct CTerrain *ter) { int i=1; int iNewNodePos,g,v; @@ -425,7 +424,7 @@ int chopUpdateTerrainRecycling(struct CTerrain *ter) return 1; } -int chopTerrainHeightAtPoint(struct CTerrain *ter, int pX) +static int chopTerrainHeightAtPoint(struct CTerrain *ter, int pX) { int iNodeIndexOne=0,iNodeIndexTwo=0, h, terY1, terY2, terX2, a, b; @@ -462,7 +461,7 @@ int chopTerrainHeightAtPoint(struct CTerrain *ter, int pX) } -int chopPointInTerrain(struct CTerrain *ter, int pX, int pY, int iTestType) +static int chopPointInTerrain(struct CTerrain *ter, int pX, int pY, int iTestType) { int h = chopTerrainHeightAtPoint(ter, pX); @@ -990,7 +989,7 @@ static void chopRenderTerrain(struct CTerrain *ter, bool isground) } } -void chopper_load(bool newgame) +static void chopper_load(bool newgame) { int i; |