aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/core
diff options
context:
space:
mode:
authorPaul Gilbert2017-07-08 21:15:28 -0400
committerPaul Gilbert2017-07-08 21:15:28 -0400
commitf513194d1b4e44400c4b6ab1e5e7224f599137f5 (patch)
treed574919ea33cd504bd71567cea56b3ab2817388a /engines/titanic/core
parent4b57eae3c3a8313d2072235476546ef3dc7f5b23 (diff)
downloadscummvm-rg350-f513194d1b4e44400c4b6ab1e5e7224f599137f5.tar.gz
scummvm-rg350-f513194d1b4e44400c4b6ab1e5e7224f599137f5.tar.bz2
scummvm-rg350-f513194d1b4e44400c4b6ab1e5e7224f599137f5.zip
TITANIC: Rename CDropTarget _showItem to _hideItem
Diffstat (limited to 'engines/titanic/core')
-rw-r--r--engines/titanic/core/drop_target.cpp8
-rw-r--r--engines/titanic/core/drop_target.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/titanic/core/drop_target.cpp b/engines/titanic/core/drop_target.cpp
index d021705e05..99d30e41aa 100644
--- a/engines/titanic/core/drop_target.cpp
+++ b/engines/titanic/core/drop_target.cpp
@@ -34,7 +34,7 @@ BEGIN_MESSAGE_MAP(CDropTarget, CGameObject)
END_MESSAGE_MAP()
CDropTarget::CDropTarget() : CGameObject(), _itemFrame(0),
- _itemMatchStartsWith(false), _showItem(false), _dropEnabled(false), _dropFrame(0),
+ _itemMatchStartsWith(false), _hideItem(false), _dropEnabled(false), _dropFrame(0),
_dragFrame(0), _dragCursorId(CURSOR_ARROW), _dropCursorId(CURSOR_HAND),
_clipFlags(20) {
}
@@ -46,7 +46,7 @@ void CDropTarget::save(SimpleFile *file, int indent) {
file->writeQuotedLine(_itemMatchName, indent);
file->writeNumberLine(_itemMatchStartsWith, indent);
file->writeQuotedLine(_soundName, indent);
- file->writeNumberLine(_showItem, indent);
+ file->writeNumberLine(_hideItem, indent);
file->writeQuotedLine(_itemName, indent);
file->writeNumberLine(_dropEnabled, indent);
file->writeNumberLine(_dropFrame, indent);
@@ -66,7 +66,7 @@ void CDropTarget::load(SimpleFile *file) {
_itemMatchName = file->readString();
_itemMatchStartsWith = file->readNumber();
_soundName = file->readString();
- _showItem = file->readNumber();
+ _hideItem = file->readNumber();
_itemName = file->readString();
_dropEnabled = file->readNumber();
_dropFrame = file->readNumber();
@@ -95,7 +95,7 @@ bool CDropTarget::DropObjectMsg(CDropObjectMsg *msg) {
msg->_item->setPosition(Point(_bounds.left, _bounds.top));
msg->_item->loadFrame(_itemFrame);
- if (_showItem)
+ if (_hideItem)
msg->_item->setVisible(false);
CDropZoneGotObjectMsg gotMsg(this);
diff --git a/engines/titanic/core/drop_target.h b/engines/titanic/core/drop_target.h
index d77efb4ce3..3536f2afed 100644
--- a/engines/titanic/core/drop_target.h
+++ b/engines/titanic/core/drop_target.h
@@ -40,7 +40,7 @@ protected:
CString _itemMatchName;
bool _itemMatchStartsWith;
CString _soundName;
- bool _showItem;
+ bool _hideItem;
CString _itemName;
bool _dropEnabled;
int _dropFrame;