31.10.2009, 22:34
I've been looking through the code and I found this piece:
Either there are two identical ifs or I'm already blind
Code:
newCheckpoint.playerDistance = checkDistance3D(player.x, player.y, player.z, (* c).x, (* c).y, (* c).z);
if (newCheckpoint.playerDistance <= ((* c).checkpointDistance * (* c).checkpointDistance))
{
if (newCheckpoint.playerDistance <= ((* c).checkpointDistance * (* c).checkpointDistance))
{
newCheckpoint.checkpointID = (* c).checkpointID;
newCheckpoint.size = (* c).size;
newCheckpoint.x = (* c).x;
newCheckpoint.y = (* c).y;
newCheckpoint.z = (* c).z;
discoveredCheckpoints.push_back(newCheckpoint);
}
}

