Fixed glitching through walls via diagonal movement.