diff options
author | Paul Gilbert | 2015-02-08 16:03:13 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-02-08 16:03:13 -0500 |
commit | ccb224d89ae4fcb889adc4e53062e90d9318851c (patch) | |
tree | 1a7607bc2b2b26efff896010aec1965db3a1b7b9 /engines/xeen/interface.cpp | |
parent | a381c49c4dddb1c8bb211b9fcaa1aec94410772c (diff) | |
download | scummvm-rg350-ccb224d89ae4fcb889adc4e53062e90d9318851c.tar.gz scummvm-rg350-ccb224d89ae4fcb889adc4e53062e90d9318851c.tar.bz2 scummvm-rg350-ccb224d89ae4fcb889adc4e53062e90d9318851c.zip |
XEEN: In progress Dismiss dialog
Diffstat (limited to 'engines/xeen/interface.cpp')
-rw-r--r-- | engines/xeen/interface.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp index 0d734aa0ce..b51801fd58 100644 --- a/engines/xeen/interface.cpp +++ b/engines/xeen/interface.cpp @@ -385,6 +385,23 @@ void Interface::charIconsPrint(bool updateFlag) { screen._windows[33].update(); } +/** + * Removes any empty character entries from the faces list + */ +void Interface::sortFaces() { + for (uint charIdx = 0; charIdx < MAX_ACTIVE_PARTY; ++charIdx) { + if (!_partyFaces[charIdx]) { + for (uint charIdx2 = charIdx + 1; charIdx2 < 8; ++charIdx2) { + if (_partyFaces[charIdx2]) { + _partyFaces[charIdx] = _partyFaces[charIdx2]; + _partyFaces[charIdx2] = 0; + break; + } + } + } + } +} + void Interface::drawViewBackground(int bgType) { if (bgType >= 4) return; |