[Scummvm-git-logs] scummvm master -> 3a17edceaa22e032fd197db469e47973f03f90a9
alxpnv
noreply at scummvm.org
Wed Nov 2 11:14:20 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:
3a17edceaa ASYLUM: rename Actor::clearFields()
Commit: 3a17edceaa22e032fd197db469e47973f03f90a9
https://github.com/scummvm/scummvm/commit/3a17edceaa22e032fd197db469e47973f03f90a9
Author: alxpnv (alxpnv22 at yahoo.com)
Date: 2022-11-02T14:18:07+03:00
Commit Message:
ASYLUM: rename Actor::clearFields()
Changed paths:
engines/asylum/resources/actor.cpp
engines/asylum/resources/actor.h
engines/asylum/resources/script.cpp
diff --git a/engines/asylum/resources/actor.cpp b/engines/asylum/resources/actor.cpp
index 8115186c8bc..12e6ad66b19 100644
--- a/engines/asylum/resources/actor.cpp
+++ b/engines/asylum/resources/actor.cpp
@@ -1125,7 +1125,7 @@ Common::String Actor::toString(bool shortString) {
// Unknown methods
//////////////////////////////////////////////////////////////////////////
-void Actor::clearFields() {
+void Actor::clearReflectionData() {
_processNewDirection = false;
_invertPriority = false;
_nextDirection = kDirectionN;
diff --git a/engines/asylum/resources/actor.h b/engines/asylum/resources/actor.h
index ef612b189bb..49df7efd5ed 100644
--- a/engines/asylum/resources/actor.h
+++ b/engines/asylum/resources/actor.h
@@ -280,9 +280,9 @@ public:
Common::String toString(bool shortString = true);
/**
- * Clears actor data fields
+ * Clears reflection-related data fields
*/
- void clearFields();
+ void clearReflectionData();
bool canReach(const Common::Point &point);
void forceTo(int16 actorX, int16 actorY, bool doSpeech);
diff --git a/engines/asylum/resources/script.cpp b/engines/asylum/resources/script.cpp
index 098da918a0d..244767ca18a 100644
--- a/engines/asylum/resources/script.cpp
+++ b/engines/asylum/resources/script.cpp
@@ -1880,7 +1880,7 @@ IMPLEMENT_OPCODE(ClearActorFields)
Actor *actor = getScene()->getActor(cmd->param1);
// Clear fields starting from field_970
- actor->clearFields();
+ actor->clearReflectionData();
END_OPCODE
//////////////////////////////////////////////////////////////////////////
More information about the Scummvm-git-logs
mailing list