From f2c91cbb19f15995528e98ee7d6573b87f039d5e Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 24 Aug 2011 14:44:40 +0200 Subject: [PATCH] Remove unnecessary dereferencing after pointer increments. --- code/aliens.cpp | 8 ++++---- code/bullets.cpp | 2 +- code/classes.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/code/aliens.cpp b/code/aliens.cpp index ed967ff..aac7de2 100644 --- a/code/aliens.cpp +++ b/code/aliens.cpp @@ -768,7 +768,7 @@ int traceView(object *theEnemy) } } - *anEnemy++; + anEnemy++; } return 0; @@ -819,7 +819,7 @@ void moveAndSeparate(object *theEnemy) { if ((theEnemy->flags & FL_LEAVESECTOR) || (theEnemy->classDef == CD_DRONE) || (theEnemy->classDef == CD_ASTEROID2) || (theEnemy->owner == anEnemy->owner) || (theEnemy->owner->owner == anEnemy->owner) || (anEnemy->shield < 1)) { - *anEnemy++; + anEnemy++; continue; } @@ -838,7 +838,7 @@ void moveAndSeparate(object *theEnemy) hasCollided = 1; } - *anEnemy++; + anEnemy++; } } @@ -1238,7 +1238,7 @@ void doAliens() theEnemy->y += engine.ssy; } - *theEnemy++; + theEnemy++; } } diff --git a/code/bullets.cpp b/code/bullets.cpp index 645a3d6..d410f51 100644 --- a/code/bullets.cpp +++ b/code/bullets.cpp @@ -484,7 +484,7 @@ void fireRay(object *attacker) } } - *anEnemy++; + anEnemy++; } attacker->ammo[0]--; diff --git a/code/classes.h b/code/classes.h index ee90c15..d291d87 100644 --- a/code/classes.h +++ b/code/classes.h @@ -373,7 +373,7 @@ class Graphics { } } - *in++; + in++; } return area.y;