diff options
author | Paul Gilbert | 2016-01-16 16:32:24 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-01-16 16:32:24 -0500 |
commit | f04cadf0a4f29b57cffb648ffd87ef66a603d386 (patch) | |
tree | 0e5abc76f03b3018e95d053328944e1df5264d8d /engines/mads | |
parent | c826047cc44943d25ea3ba74a958a7ab34989b8a (diff) | |
download | scummvm-rg350-f04cadf0a4f29b57cffb648ffd87ef66a603d386.tar.gz scummvm-rg350-f04cadf0a4f29b57cffb648ffd87ef66a603d386.tar.bz2 scummvm-rg350-f04cadf0a4f29b57cffb648ffd87ef66a603d386.zip |
MADS: Properly name popup fields in conversation class
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/conversations.cpp | 12 | ||||
-rw-r--r-- | engines/mads/conversations.h | 6 | ||||
-rw-r--r-- | engines/mads/dialogs.h | 1 |
3 files changed, 10 insertions, 9 deletions
diff --git a/engines/mads/conversations.cpp b/engines/mads/conversations.cpp index 5f273eabbb..54f2d5d445 100644 --- a/engines/mads/conversations.cpp +++ b/engines/mads/conversations.cpp @@ -111,9 +111,9 @@ void GameConversations::run(int id) { Common::fill(&_speakerActive[0], &_speakerActive[MAX_SPEAKERS], false); Common::fill(&_speakerPortraits[0], &_speakerPortraits[MAX_SPEAKERS], -1); Common::fill(&_speakerExists[0], &_speakerExists[MAX_SPEAKERS], 1); - Common::fill(&_arr4[0], &_arr4[MAX_SPEAKERS], 0x8000); - Common::fill(&_arr5[0], &_arr5[MAX_SPEAKERS], 0x8000); - Common::fill(&_arr6[0], &_arr6[MAX_SPEAKERS], 30); + Common::fill(&_popupX[0], &_popupX[MAX_SPEAKERS], POPUP_CENTER); + Common::fill(&_popupY[0], &_popupY[MAX_SPEAKERS], POPUP_CENTER); + Common::fill(&_popupMaxLen[0], &_popupMaxLen[MAX_SPEAKERS], 30); // Start the conversation start(); @@ -122,9 +122,9 @@ void GameConversations::run(int id) { setVariable(2, &_speakerVal); for (int idx = 0; idx < MAX_SPEAKERS; ++idx) { setVariable(3 + idx, &_speakerExists[idx]); - setVariable(8 + idx, &_arr4[idx]); - setVariable(13 + idx, &_arr5[idx]); - setVariable(18 + idx, &_arr6[idx]); + setVariable(8 + idx, &_popupX[idx]); + setVariable(13 + idx, &_popupY[idx]); + setVariable(18 + idx, &_popupMaxLen[idx]); } // Load sprite data for speaker portraits diff --git a/engines/mads/conversations.h b/engines/mads/conversations.h index e1247875c5..90f078a196 100644 --- a/engines/mads/conversations.h +++ b/engines/mads/conversations.h @@ -303,9 +303,9 @@ private: bool _speakerActive[MAX_SPEAKERS]; int _speakerPortraits[MAX_SPEAKERS]; int _speakerExists[MAX_SPEAKERS]; - int _arr4[MAX_SPEAKERS]; - int _arr5[MAX_SPEAKERS]; - int _arr6[MAX_SPEAKERS]; + int _popupX[MAX_SPEAKERS]; + int _popupY[MAX_SPEAKERS]; + int _popupMaxLen[MAX_SPEAKERS]; InputMode _inputMode; int _val1; ConversationMode _currentMode; diff --git a/engines/mads/dialogs.h b/engines/mads/dialogs.h index 27bc0a43ee..0b98fdd535 100644 --- a/engines/mads/dialogs.h +++ b/engines/mads/dialogs.h @@ -31,6 +31,7 @@ namespace MADS { #define DIALOG_TOP 22 +#define POPUP_CENTER 0x8000 class Dialog { private: |