From 12fb18b1de842e201477302a86b0f567bbdcc7e5 Mon Sep 17 00:00:00 2001 From: marti Date: Tue, 23 Dec 2025 13:07:32 +0100 Subject: [PATCH] Fix: Remove camera view corruption - Removed line in animateMovement that mutated CAMERA_VIEWS static constants. - This prevents the camera offset from skewing as the player moves away from the origin, ensuring the isometric view angle remains consistent throughout the entire dungeon. --- src/main.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main.js b/src/main.js index d377c1f..c21e8d6 100644 --- a/src/main.js +++ b/src/main.js @@ -675,10 +675,6 @@ async function animateMovement() { controls.target.copy(newTarget); camera.position.copy(newTarget).add(currentOffset); - // Actualizar el target de la vista actual para futuras referencias - CAMERA_VIEWS[SESSION.currentView].target = { x: newTarget.x, y: newTarget.y, z: newTarget.z }; - - SESSION.selectedUnitId = null; updateSelectionVisuals(); SESSION.isAnimating = false;