diff options
author | Paul Gilbert | 2016-11-09 20:49:37 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-11-09 20:49:37 -0500 |
commit | 3f1549824dacfaffe7dc21258002d075b57a6cf9 (patch) | |
tree | 7d0282934d5a0b7e6b32859faddcd23f51b6f37c /engines/titanic/pet_control | |
parent | 5cdec1136a3dec82b025d5e9a626336e4f24fb61 (diff) | |
download | scummvm-rg350-3f1549824dacfaffe7dc21258002d075b57a6cf9.tar.gz scummvm-rg350-3f1549824dacfaffe7dc21258002d075b57a6cf9.tar.bz2 scummvm-rg350-3f1549824dacfaffe7dc21258002d075b57a6cf9.zip |
TITANIC: Fix rendering of first chev column in room glyphs
Diffstat (limited to 'engines/titanic/pet_control')
-rw-r--r-- | engines/titanic/pet_control/pet_rooms_glyphs.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/engines/titanic/pet_control/pet_rooms_glyphs.cpp b/engines/titanic/pet_control/pet_rooms_glyphs.cpp index ca2dac6bcd..f38ed28a80 100644 --- a/engines/titanic/pet_control/pet_rooms_glyphs.cpp +++ b/engines/titanic/pet_control/pet_rooms_glyphs.cpp @@ -69,10 +69,10 @@ void CPetRoomsGlyph::drawAt(CScreenManager *screenManager, const Point &pt, bool uint roomBits = roomFlags.getRoomBits(); // Save a copy of object pointers that may be modified - CGameObject *obj0 = _chevLeftOnDim; - CGameObject *obj1 = _chevLeftOffDim; - CGameObject *obj4 = _chevRightOnDim; - CGameObject *obj5 = _chevRightOffDim; + CGameObject *leftOnDim = _chevLeftOnDim; + CGameObject *leftOffDim = _chevLeftOffDim; + CGameObject *rightOnDim = _chevRightOnDim; + CGameObject *rightOffDim = _chevRightOffDim; if (_mailFlag || isHighlighted_) { _chevLeftOnDim = _chevLeftOnLit; @@ -81,7 +81,7 @@ void CPetRoomsGlyph::drawAt(CScreenManager *screenManager, const Point &pt, bool _chevRightOffDim = _chevRightOffLit; } - // Draw the images + // Draw the chevron fragments for each line Point destPt = pt; drawObjects(classBits + elevBits * 4, destPt, screenManager); destPt.y += 10; @@ -94,11 +94,11 @@ void CPetRoomsGlyph::drawAt(CScreenManager *screenManager, const Point &pt, bool drawObjects(((roomBits & 7) << 1) + (roomFlags.getBit0() ? 1 : 0), destPt, screenManager); - // Restore original object pointers - _chevLeftOnDim = obj0; - _chevLeftOffDim = obj1; - _chevRightOnDim = obj4; - _chevRightOffDim = obj5; + // Restore original image pointers + _chevLeftOnDim = leftOnDim; + _chevLeftOffDim = leftOffDim; + _chevRightOnDim = rightOnDim; + _chevRightOffDim = rightOffDim; } void CPetRoomsGlyph::selectGlyph(const Point &topLeft, const Point &pt) { @@ -216,7 +216,7 @@ int CPetRoomsGlyph::getSelection(const Point &topLeft, const Point &pt) { void CPetRoomsGlyph::drawObjects(uint flags, const Point &pt, CScreenManager *screenManager) { if (_chevLeftOnDim && _chevLeftOffDim && _chevRightOnDim && _chevRightOffDim) { Point destPos = pt; - ((flags & 8) ? _chevLeftOnDim : _chevRightOffDim)->draw(screenManager, destPos); + ((flags & 8) ? _chevLeftOnDim : _chevLeftOffDim)->draw(screenManager, destPos); destPos.x += 13; ((flags & 4) ? _chevRightOnDim : _chevRightOffDim)->draw(screenManager, destPos); destPos.x += 13; |