Remove unnecessary dereferencing after pointer increments.

This commit is contained in:
Guus Sliepen 2011-08-24 14:44:40 +02:00
parent 0910cd3db6
commit f2c91cbb19
3 changed files with 6 additions and 6 deletions

View File

@ -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++;
}
}

View File

@ -484,7 +484,7 @@ void fireRay(object *attacker)
}
}
*anEnemy++;
anEnemy++;
}
attacker->ammo[0]--;

View File

@ -373,7 +373,7 @@ class Graphics {
}
}
*in++;
in++;
}
return area.y;