[Scummvm-git-logs] scummvm master -> bad56df94a3741a42509fa1a5f69a28f5dd1582e

aquadran noreply at scummvm.org
Wed Jun 8 05:23:13 UTC 2022


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

Summary:
bad56df94a GRIM: Disable not used code in WalkActorTo opcode


Commit: bad56df94a3741a42509fa1a5f69a28f5dd1582e
    https://github.com/scummvm/scummvm/commit/bad56df94a3741a42509fa1a5f69a28f5dd1582e
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2022-06-08T07:23:07+02:00

Commit Message:
GRIM: Disable not used code in WalkActorTo opcode

Changed paths:
    engines/grim/lua_v1_actor.cpp


diff --git a/engines/grim/lua_v1_actor.cpp b/engines/grim/lua_v1_actor.cpp
index a8c59833aa6..535ce7a1ea2 100644
--- a/engines/grim/lua_v1_actor.cpp
+++ b/engines/grim/lua_v1_actor.cpp
@@ -555,9 +555,10 @@ void Lua_V1::WalkActorTo() {
 	lua_Object yObj = lua_getparam(3);
 	lua_Object zObj = lua_getparam(4);
 
-	lua_Object txObj = lua_getparam(5);
+	// Not used in scripts
+/*	lua_Object txObj = lua_getparam(5);
 	lua_Object tyObj = lua_getparam(6);
-	lua_Object tzObj = lua_getparam(7);
+	lua_Object tzObj = lua_getparam(7);*/
 
 	if (!lua_isuserdata(actorObj) || lua_tag(actorObj) != MKTAG('A','C','T','R'))
 		return;
@@ -576,11 +577,11 @@ void Lua_V1::WalkActorTo() {
 		destVec.set(x, y, z);
 	}
 
-	// TODO figure out purpose this
-	float tx = lua_getnumber(txObj);
+	// Not used in scripts
+/*	float tx = lua_getnumber(txObj);
 	float ty = lua_getnumber(tyObj);
 	float tz = lua_getnumber(tzObj);
-	Math::Vector3d tVec(tx, ty, tz);
+	Math::Vector3d tVec(tx, ty, tz);*/
 
 	actor->walkTo(destVec);
 }




More information about the Scummvm-git-logs mailing list