Skip to content

Commit

Permalink
ACCESS: MM - Make cmdTexSpeak game-dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Jan 3, 2015
1 parent 022b81b commit 7e45ce9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions engines/access/scripts.cpp
Expand Up @@ -614,14 +614,18 @@ void Scripts::cmdCharSpeak() {
void Scripts::cmdTexSpeak() {
_vm->_screen->_printOrg = _texsOrg;
_vm->_screen->_printStart = _texsOrg;
_vm->_screen->_maxChars = 20;
_vm->_screen->_maxChars = (_vm->getGameID() == GType_MartianMemorandum) ? 23 : 20;

byte v;
Common::String tmpStr = "";
while ((v = _data->readByte()) != 0)
tmpStr += (char)v;

_vm->_bubbleBox->_bubbleDisplStr = Common::String("JASON");
if (_vm->getGameID() == GType_MartianMemorandum)
_vm->_bubbleBox->_bubbleDisplStr = Common::String("TEX");
else
_vm->_bubbleBox->_bubbleDisplStr = Common::String("JASON");

_vm->_bubbleBox->placeBubble1(tmpStr);
findNull();
}
Expand Down

0 comments on commit 7e45ce9

Please sign in to comment.