[Scummvm-git-logs] scummvm master -> 0f7d74c0b9bc579591cfb8abc7e427eb73348782

neuromancer noreply at scummvm.org
Tue Nov 3 07:59:28 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
0f7d74c0b9 FREESCAPE: Support smooth movement in 3DCK


Commit: 0f7d74c0b9bc579591cfb8abc7e427eb73348782
    https://github.com/scummvm/scummvm/commit/0f7d74c0b9bc579591cfb8abc7e427eb73348782
Author: Samyak Shende (i24ma027 at amhd.svnit.ac.in)
Date: 2026-11-03T08:59:22+01:00

Commit Message:
FREESCAPE: Support smooth movement in 3DCK

Changed paths:
    engines/freescape/detection.cpp
    engines/freescape/games/3dck/3dck.cpp


diff --git a/engines/freescape/detection.cpp b/engines/freescape/detection.cpp
index 9acf014ca86..d438b30a292 100644
--- a/engines/freescape/detection.cpp
+++ b/engines/freescape/detection.cpp
@@ -1263,7 +1263,7 @@ const ADGameDescription gameDescriptions[] = {
 		Common::EN_ANY,
 		Common::kPlatformDOS,
 		ADGF_UNSTABLE,
-		GUIO2(GUIO_NOMIDI, GUIO_RENDERVGA)
+		GUIO3(GUIO_NOMIDI, GUIO_RENDERVGA, GAMEOPTION_MODERN_MOVEMENT)
 	},
 	{
 		"3dkit",
diff --git a/engines/freescape/games/3dck/3dck.cpp b/engines/freescape/games/3dck/3dck.cpp
index 948e01308ed..e889160f425 100644
--- a/engines/freescape/games/3dck/3dck.cpp
+++ b/engines/freescape/games/3dck/3dck.cpp
@@ -524,9 +524,17 @@ void KitEngine::updatePlayerMovement(float deltaTime) {
 		return;
 	movement.normalize();
 
+	Math::Vector3d delta;
+	if (_smoothMovement) {
+		float moveSpeed = _playerSteps[_playerStepIndex] * 25.0f;
+		delta = movement * moveSpeed * deltaTime;
+	} else {
+		delta = movement * _playerSteps[_playerStepIndex];
+	}
+
 	// The runner advances one full step per completed script frame.
 	float height = _position.y();
-	resolveCollisions(_position + movement * _playerSteps[_playerStepIndex]);
+	resolveCollisions(_position + delta);
 	checkIfStillInArea();
 	bool blocked = (_position - _lastPosition).length() < 1;
 	_lastPosition = _position;




More information about the Scummvm-git-logs mailing list