aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs_party.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-02-10 19:28:45 -0500
committerPaul Gilbert2015-02-10 19:28:45 -0500
commite59617834503da077c27c5dff37f620bb1e9f0c1 (patch)
tree2cdddc9244c4ffb66b18a56a3a9ab4ac91e88b5c /engines/xeen/dialogs_party.cpp
parent8256f7c8dfcdefe7da352fd36b42dc0931a111f8 (diff)
downloadscummvm-rg350-e59617834503da077c27c5dff37f620bb1e9f0c1.tar.gz
scummvm-rg350-e59617834503da077c27c5dff37f620bb1e9f0c1.tar.bz2
scummvm-rg350-e59617834503da077c27c5dff37f620bb1e9f0c1.zip
XEEN: Refactored drawing the party icons into a separate class
Diffstat (limited to 'engines/xeen/dialogs_party.cpp')
-rw-r--r--engines/xeen/dialogs_party.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/xeen/dialogs_party.cpp b/engines/xeen/dialogs_party.cpp
index c8689f0656..9202187b6a 100644
--- a/engines/xeen/dialogs_party.cpp
+++ b/engines/xeen/dialogs_party.cpp
@@ -220,7 +220,6 @@ void PartyDialog::setupBackground() {
*/
void PartyDialog::setupFaces(int firstDisplayChar, Common::Array<int> xeenSideChars, bool updateFlag) {
Party &party = *_vm->_party;
- Resources &res = *_vm->_resources;
Common::String charNames[4];
Common::String charRaces[4];
Common::String charSex[4];
@@ -229,7 +228,7 @@ void PartyDialog::setupFaces(int firstDisplayChar, Common::Array<int> xeenSideCh
int charId;
for (posIndex = 0; posIndex < 4; ++posIndex) {
- charId = (firstDisplayChar + posIndex) >= xeenSideChars.size() ? -1 :
+ charId = (firstDisplayChar + posIndex) >= (int)xeenSideChars.size() ? -1 :
xeenSideChars[firstDisplayChar + posIndex];
bool isInParty = party.isInParty(charId);
@@ -248,11 +247,11 @@ void PartyDialog::setupFaces(int firstDisplayChar, Common::Array<int> xeenSideCh
charClasses[posIndex] = CLASS_NAMES[ps._class];
}
- charIconsPrint(updateFlag);
+ drawParty(updateFlag);
// Set up the sprite set to use for each face
for (int posIndex = 0; posIndex < 4; ++posIndex) {
- if ((firstDisplayChar + posIndex) >= xeenSideChars.size())
+ if ((firstDisplayChar + posIndex) >= (int)xeenSideChars.size())
_faceDrawStructs[posIndex]._sprites = nullptr;
else
_faceDrawStructs[posIndex]._sprites = party._roster[posIndex]._faceSprites;
@@ -268,7 +267,7 @@ void PartyDialog::setupFaces(int firstDisplayChar, Common::Array<int> xeenSideCh
void PartyDialog::startingCharChanged(Common::Array<int> &charList, int firstDisplayChar) {
Party &party = *_vm->_party;
-
+ // TODO
}
} // End of namespace Xeen