summaryrefslogtreecommitdiff
path: root/apps/plugins/chopper.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/chopper.c')
-rw-r--r--apps/plugins/chopper.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c
index 5f9fadf205..bb36294238 100644
--- a/apps/plugins/chopper.c
+++ b/apps/plugins/chopper.c
@@ -392,7 +392,6 @@ static void chopTerrainNodeDeleteAndShift(struct CTerrain *ter,int nodeIndex)
392int chopUpdateTerrainRecycling(struct CTerrain *ter) 392int chopUpdateTerrainRecycling(struct CTerrain *ter)
393{ 393{
394 int i=1; 394 int i=1;
395 int ret = 0;
396 int iNewNodePos,g,v; 395 int iNewNodePos,g,v;
397 while(i < ter->iNodesCount) 396 while(i < ter->iNodesCount)
398 { 397 {
@@ -412,8 +411,6 @@ int chopUpdateTerrainRecycling(struct CTerrain *ter)
412 v*=5; 411 v*=5;
413 412
414 chopAddTerrainNode(ter,iNewNodePos,g - iR(-v,v)); 413 chopAddTerrainNode(ter,iNewNodePos,g - iR(-v,v));
415 ret=1;
416
417 } 414 }
418 415
419 i++; 416 i++;
@@ -426,7 +423,7 @@ int chopUpdateTerrainRecycling(struct CTerrain *ter)
426int chopTerrainHeightAtPoint(struct CTerrain *ter, int pX) 423int chopTerrainHeightAtPoint(struct CTerrain *ter, int pX)
427{ 424{
428 425
429 int iNodeIndexOne=0,iNodeIndexTwo=0, h, terY1, terY2, terX1, terX2, a, b; 426 int iNodeIndexOne=0,iNodeIndexTwo=0, h, terY1, terY2, terX2, a, b;
430 float c,d; 427 float c,d;
431 428
432 int i=0; 429 int i=0;
@@ -444,7 +441,7 @@ int chopTerrainHeightAtPoint(struct CTerrain *ter, int pX)
444 terY1 = ter->mNodes[iNodeIndexOne].y; 441 terY1 = ter->mNodes[iNodeIndexOne].y;
445 terY2 = ter->mNodes[iNodeIndexTwo].y; 442 terY2 = ter->mNodes[iNodeIndexTwo].y;
446 443
447 terX1 = 0; 444 /* terX1 = 0; */
448 terX2 = ter->mNodes[iNodeIndexTwo].x - ter->mNodes[iNodeIndexOne].x; 445 terX2 = ter->mNodes[iNodeIndexTwo].x - ter->mNodes[iNodeIndexOne].x;
449 446
450 pX-= ter->mNodes[iNodeIndexOne].x; 447 pX-= ter->mNodes[iNodeIndexOne].x;