Check z-coordinate before telefragging