aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/engine
diff options
context:
space:
mode:
authorathrxx2019-11-27 21:17:06 +0100
committerathrxx2019-12-18 20:50:45 +0100
commitfde59250370cb4c1550621a33bf2b5c449e2bcdb (patch)
tree346f62cf1fa9f9a0a05c7c2243b3dcea4f23c088 /engines/kyra/engine
parent4ce2d593e5cc52af4ca69f6d552ba206167f9017 (diff)
downloadscummvm-rg350-fde59250370cb4c1550621a33bf2b5c449e2bcdb.tar.gz
scummvm-rg350-fde59250370cb4c1550621a33bf2b5c449e2bcdb.tar.bz2
scummvm-rg350-fde59250370cb4c1550621a33bf2b5c449e2bcdb.zip
KYRA: (EOB/PC98) - fix character generator glitches
Diffstat (limited to 'engines/kyra/engine')
-rw-r--r--engines/kyra/engine/chargen.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/kyra/engine/chargen.cpp b/engines/kyra/engine/chargen.cpp
index a1bd85ad9d..58b654a505 100644
--- a/engines/kyra/engine/chargen.cpp
+++ b/engines/kyra/engine/chargen.cpp
@@ -410,7 +410,8 @@ void CharacterGenerator::toggleSpecialButton(int index, int bodyCustom, int page
void CharacterGenerator::processSpecialButton(int index) {
toggleSpecialButton(index, 1, 0);
- _vm->snd_playSoundEffect(76);
+ if (!(_vm->game() == GI_EOB1 && _vm->_flags.platform == Common::kPlatformPC98))
+ _vm->snd_playSoundEffect(76);
_vm->_system->delayMillis(80);
toggleSpecialButton(index, 0, 0);
}
@@ -930,8 +931,8 @@ void CharacterGenerator::printStats(int index, int mode) {
_screen->drawShape(2, c->faceShape, 224, 2, 0);
_screen->printShadedText(c->name, 160 + ((160 - _screen->getTextWidth(c->name)) / 2), 35, _vm->guiSettings()->colors.guiColorWhite, 0, _vm->guiSettings()->colors.guiColorBlack);
- _screen->printShadedText(_chargenRaceSexStrings[c->raceSex], 160 + ((20 - strlen(_chargenRaceSexStrings[c->raceSex])) << 2), 45, _vm->guiSettings()->colors.guiColorWhite, 0, _vm->guiSettings()->colors.guiColorBlack);
- _screen->printShadedText(_chargenClassStrings[c->cClass], 160 + ((20 - strlen(_chargenClassStrings[c->cClass])) << 2), 54, _vm->guiSettings()->colors.guiColorWhite, 0, _vm->guiSettings()->colors.guiColorBlack);
+ _screen->printShadedText(_chargenRaceSexStrings[c->raceSex], 160 + ((160 - _screen->getTextWidth(_chargenRaceSexStrings[c->raceSex])) / 2), 45, _vm->guiSettings()->colors.guiColorWhite, 0, _vm->guiSettings()->colors.guiColorBlack);
+ _screen->printShadedText(_chargenClassStrings[c->cClass], 160 + ((160 - _screen->getTextWidth(_chargenClassStrings[c->cClass])) / 2), 54, _vm->guiSettings()->colors.guiColorWhite, 0, _vm->guiSettings()->colors.guiColorBlack);
for (int i = 0; i < 6; i++)
_screen->printShadedText(_chargenStatStrings[i], 163, (i + 8) << 3, _vm->guiSettings()->colors.guiColorWhite, 0, _vm->guiSettings()->colors.guiColorBlack);