diff options
author | Paul Gilbert | 2017-02-18 22:56:00 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-02-18 22:56:00 -0500 |
commit | 66f3458a2be4a9a490b406a4e9a100be43849725 (patch) | |
tree | c1c7cdbf58d9b4db615faa536e61a68fcde14767 /engines/titanic/game | |
parent | cc169fc5754af814c8e91e970eae384f3c4c4074 (diff) | |
download | scummvm-rg350-66f3458a2be4a9a490b406a4e9a100be43849725.tar.gz scummvm-rg350-66f3458a2be4a9a490b406a4e9a100be43849725.tar.bz2 scummvm-rg350-66f3458a2be4a9a490b406a4e9a100be43849725.zip |
TITANIC: Renamings for CCarry class
Diffstat (limited to 'engines/titanic/game')
-rw-r--r-- | engines/titanic/game/cdrom.cpp | 10 | ||||
-rw-r--r-- | engines/titanic/game/cdrom.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/engines/titanic/game/cdrom.cpp b/engines/titanic/game/cdrom.cpp index 0d1cd3a6f2..d8d31ecc1a 100644 --- a/engines/titanic/game/cdrom.cpp +++ b/engines/titanic/game/cdrom.cpp @@ -38,21 +38,21 @@ CCDROM::CCDROM() : CGameObject() { void CCDROM::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); - file->writePoint(_tempPos, indent); + file->writePoint(_centroid, indent); CGameObject::save(file, indent); } void CCDROM::load(SimpleFile *file) { file->readNumber(); - _tempPos = file->readPoint(); + _centroid = file->readPoint(); CGameObject::load(file); } bool CCDROM::MouseDragStartMsg(CMouseDragStartMsg *msg) { if (checkStartDragging(msg)) { hideMouse(); - _tempPos = msg->_mousePos - _bounds; - setPosition(msg->_mousePos - _tempPos); + _centroid = msg->_mousePos - _bounds; + setPosition(msg->_mousePos - _centroid); return true; } else { return false; @@ -77,7 +77,7 @@ bool CCDROM::MouseDragEndMsg(CMouseDragEndMsg *msg) { } bool CCDROM::MouseDragMoveMsg(CMouseDragMoveMsg *msg) { - setPosition(msg->_mousePos - _tempPos); + setPosition(msg->_mousePos - _centroid); return true; } diff --git a/engines/titanic/game/cdrom.h b/engines/titanic/game/cdrom.h index 017914830c..12175f6450 100644 --- a/engines/titanic/game/cdrom.h +++ b/engines/titanic/game/cdrom.h @@ -36,7 +36,7 @@ class CCDROM : public CGameObject { bool MouseDragMoveMsg(CMouseDragMoveMsg *msg); bool ActMsg(CActMsg *msg); private: - Point _tempPos; + Point _centroid; public: CLASSDEF; CCDROM(); |