aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/pet_control/pet_control.cpp')
-rw-r--r--engines/titanic/pet_control/pet_control.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp
index 45b5ac3c93..802e0ada12 100644
--- a/engines/titanic/pet_control/pet_control.cpp
+++ b/engines/titanic/pet_control/pet_control.cpp
@@ -178,9 +178,14 @@ void CPetControl::enterRoom(CRoomItem *room) {
_remote.enterRoom(room);
}
-void CPetControl::clear() {
+void CPetControl::resetRemoteTarget() {
_remoteTarget = nullptr;
- _string2.clear();
+ _remoteTargetName.clear();
+}
+
+void CPetControl::resetActiveNPC() {
+ _activeNPC = nullptr;
+ _activeNPCName = "";
}
bool CPetControl::fn1(int val) {
@@ -219,12 +224,12 @@ void CPetControl::highlightGlyph(int id) {
_sections[_currentArea]->highlight(id);
}
-void CPetControl::fn3(CTreeItem *item) {
+void CPetControl::setRemoteTarget(CGameObject *item) {
_remoteTarget = item;
if (item)
- _string2 = item->getName();
+ _remoteTargetName = item->getName();
else
- _string2.clear();
+ _remoteTargetName.clear();
}
CRoomItem *CPetControl::getHiddenRoom() {