VOYEUR: Refactored doAptPosX/Y into a local variable