diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/pet_control/pet_text.cpp | 7 | ||||
-rw-r--r-- | engines/titanic/pet_control/pet_text.h | 7 |
2 files changed, 13 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_text.cpp b/engines/titanic/pet_control/pet_text.cpp index 2e3a184739..7f5a5eaed9 100644 --- a/engines/titanic/pet_control/pet_text.cpp +++ b/engines/titanic/pet_control/pet_text.cpp @@ -170,7 +170,7 @@ void CPetText::resize(uint count) { CString CPetText::getText() const { CString result = ""; - for (uint idx = 0; idx < _lineCount; ++idx) + for (int idx = 0; idx < _lineCount; ++idx) result += _array[idx]._line; return result; @@ -247,4 +247,9 @@ void CPetText::deleteLastChar() { } } +void CPetText::setNPC(int val1, int npcId) { + _field64 = val1; + _field68 = npcId; +} + } // End of namespace Titanic diff --git a/engines/titanic/pet_control/pet_text.h b/engines/titanic/pet_control/pet_text.h index 73e85401c3..35d48974dd 100644 --- a/engines/titanic/pet_control/pet_text.h +++ b/engines/titanic/pet_control/pet_text.h @@ -149,6 +149,13 @@ public: * Delete the last character from the last line */ void deleteLastChar(); + + void setNPC(int val1, int npcId); + + /** + * Get the font + */ + int getFontNumber() const { return _fontNumber1; } }; } // End of namespace Titanic |