diff options
-rw-r--r-- | engines/titanic/pet_control/pet_rooms_glyphs.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/titanic/pet_control/pet_rooms_glyphs.cpp b/engines/titanic/pet_control/pet_rooms_glyphs.cpp index e911759f25..1df4a0efac 100644 --- a/engines/titanic/pet_control/pet_rooms_glyphs.cpp +++ b/engines/titanic/pet_control/pet_rooms_glyphs.cpp @@ -145,15 +145,15 @@ void CPetRoomsGlyph::getTooltip(CPetText *text) { CRoomFlags roomFlags(_roomFlags); CPetRooms *owner = static_cast<CPetRooms *>(getPetSection()); - CString msg; + CString prefix; if (isCurrentlyAssigned()) { - msg = "Your assigned room: "; + prefix = "Your assigned room: "; } else if (isPreviouslyAssigned()) { - msg = "A previously assigned room: "; + prefix = "A previously assigned room: "; } else if (!_mailFlag) { - msg = "Saved Chevron: "; + prefix = "Saved Chevron: "; } else if (_mailFlag == 1 && owner->getRoomFlags() == _roomFlags) { - msg = "Current location: "; + prefix = "Current location: "; } // Get the room description @@ -165,7 +165,7 @@ void CPetRoomsGlyph::getTooltip(CPetText *text) { } roomStr += " (shift-click edits)"; - text->setText(roomStr); + text->setText(prefix + roomStr); } void CPetRoomsGlyph::saveGlyph(SimpleFile *file, int indent) { |