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.
This commit is contained in:
2025-12-23 13:07:32 +01:00
parent e47b2eeba0
commit 12fb18b1de

View File

@@ -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;