aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/text_lol.cpp
diff options
context:
space:
mode:
authorFlorian Kagerer2009-02-14 13:55:00 +0000
committerFlorian Kagerer2009-02-14 13:55:00 +0000
commit02c149e174137f179ac94c98979622a51720be31 (patch)
treea41b0cbb0f41360ec9546d21401b5d9ac5a714be /engines/kyra/text_lol.cpp
parentdfaaf2fd45d38b3e443117c73c031fe6b26f8fe2 (diff)
downloadscummvm-rg350-02c149e174137f179ac94c98979622a51720be31.tar.gz
scummvm-rg350-02c149e174137f179ac94c98979622a51720be31.tar.bz2
scummvm-rg350-02c149e174137f179ac94c98979622a51720be31.zip
LOL: fixed bug in text displayer and some cleanup
svn-id: r36327
Diffstat (limited to 'engines/kyra/text_lol.cpp')
-rw-r--r--engines/kyra/text_lol.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/kyra/text_lol.cpp b/engines/kyra/text_lol.cpp
index b85d12710a..48d67b7dda 100644
--- a/engines/kyra/text_lol.cpp
+++ b/engines/kyra/text_lol.cpp
@@ -193,15 +193,15 @@ void TextDisplayer_LoL::playDialogue(int dim, char *str, EMCState *script, int16
_vm->_fadeText = false;
}
-void TextDisplayer_LoL::printMessage(uint16 flags, char *str, ...) {
+void TextDisplayer_LoL::printMessage(uint16 type, char *str, ...) {
static uint8 textColours[] = { 0xfe, 0xa2, 0x84, 0x97, 0x9F };
static uint8 soundEffect[] = { 0x0B, 0x00, 0x2B, 0x1B, 0x00 };
- if (flags & 4)
- flags ^= 4;
+ if (type & 4)
+ type ^= 4;
else
_vm->updatePortraits();
- uint16 col = textColours[flags & 0x7fff];
+ uint16 col = textColours[type & 0x7fff];
int od = _screen->curDimIndex();
@@ -225,14 +225,14 @@ void TextDisplayer_LoL::printMessage(uint16 flags, char *str, ...) {
va_end(args);
- displayText(str);
+ displayText(_buffer);
_screen->setScreenDim(od);
- if (!(flags & 0x8000) && soundEffect[flags])
- _vm->sound()->playSoundEffect(soundEffect[flags]);
+ if (!(type & 0x8000) && soundEffect[type])
+ _vm->sound()->playSoundEffect(soundEffect[type]);
- _vm->_textColourFlag = flags & 0x7fff;
+ _vm->_textColourFlag = type & 0x7fff;
_vm->_fadeText = false;
}