aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2016-12-01 21:49:34 -0500
committerPaul Gilbert2016-12-01 21:49:34 -0500
commitaefbd436eb138caac623e16bdef6d34714b55eb3 (patch)
treeae143c56ff8ab927dfa098be2c64ae9695b094da /engines
parent0b64923b827bd05b14e56aa58f742726c33390f3 (diff)
downloadscummvm-rg350-aefbd436eb138caac623e16bdef6d34714b55eb3.tar.gz
scummvm-rg350-aefbd436eb138caac623e16bdef6d34714b55eb3.tar.bz2
scummvm-rg350-aefbd436eb138caac623e16bdef6d34714b55eb3.zip
TITANIC: Field renaming for CSuccubusDeliveryGlyph
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/pet_control/pet_remote_glyphs.cpp16
-rw-r--r--engines/titanic/pet_control/pet_remote_glyphs.h4
2 files changed, 10 insertions, 10 deletions
diff --git a/engines/titanic/pet_control/pet_remote_glyphs.cpp b/engines/titanic/pet_control/pet_remote_glyphs.cpp
index 8e27797ba1..0116aa9156 100644
--- a/engines/titanic/pet_control/pet_remote_glyphs.cpp
+++ b/engines/titanic/pet_control/pet_remote_glyphs.cpp
@@ -478,32 +478,32 @@ bool CSuccubusDeliveryGlyph::setup(CPetControl *petControl, CPetGlyphs *owner) {
setDefaults("3PetSuccubus", petControl);
if (owner) {
- _gfxElement1 = getElement(16);
- _gfxElement2 = getElement(17);
+ _send = getElement(16);
+ _receive = getElement(17);
}
return true;
}
void CSuccubusDeliveryGlyph::draw2(CScreenManager *screenManager) {
- _gfxElement1->draw(screenManager);
- _gfxElement2->draw(screenManager);
+ _send->draw(screenManager);
+ _receive->draw(screenManager);
}
bool CSuccubusDeliveryGlyph::MouseButtonDownMsg(const Point &pt) {
- return _gfxElement1->MouseButtonDownMsg(pt)
- || _gfxElement2->MouseButtonDownMsg(pt);
+ return _send->MouseButtonDownMsg(pt)
+ || _receive->MouseButtonDownMsg(pt);
}
bool CSuccubusDeliveryGlyph::MouseButtonUpMsg(const Point &pt) {
CTreeItem *target = getPetControl()->_remoteTarget;
- if (_gfxElement1 && _gfxElement1->MouseButtonUpMsg(pt)) {
+ if (_send && _send->MouseButtonUpMsg(pt)) {
if (target) {
CPETDeliverMsg msg;
msg.execute(target);
}
- } else if (_gfxElement2 && _gfxElement2->MouseButtonUpMsg(pt)) {
+ } else if (_receive && _receive->MouseButtonUpMsg(pt)) {
if (target) {
CPETReceiveMsg msg;
msg.execute(target);
diff --git a/engines/titanic/pet_control/pet_remote_glyphs.h b/engines/titanic/pet_control/pet_remote_glyphs.h
index d0edd6fbfc..691a70f609 100644
--- a/engines/titanic/pet_control/pet_remote_glyphs.h
+++ b/engines/titanic/pet_control/pet_remote_glyphs.h
@@ -595,10 +595,10 @@ public:
class CSuccubusDeliveryGlyph : public CPetRemoteGlyph {
private:
- CPetGfxElement *_gfxElement1, *_gfxElement2;
+ CPetGfxElement *_send, *_receive;
public:
CSuccubusDeliveryGlyph() : CPetRemoteGlyph(),
- _gfxElement1(nullptr), _gfxElement2(nullptr) {}
+ _send(nullptr), _receive(nullptr) {}
/**
* Setup the glyph