diff options
author | James Brown | 2002-12-29 17:35:38 +0000 |
---|---|---|
committer | James Brown | 2002-12-29 17:35:38 +0000 |
commit | b8ef222a8d22d6e0798053e3975ab8731fab06e7 (patch) | |
tree | 09044cda1c63ead1f8c2cfba2d0504d381cc3fcb /scumm/verbs.cpp | |
parent | c9a6b40607ec9b5559b63dbf3b2d76d737aa3648 (diff) | |
download | scummvm-rg350-b8ef222a8d22d6e0798053e3975ab8731fab06e7.tar.gz scummvm-rg350-b8ef222a8d22d6e0798053e3975ab8731fab06e7.tar.bz2 scummvm-rg350-b8ef222a8d22d6e0798053e3975ab8731fab06e7.zip |
Remove translation code from verbage
svn-id: r6255
Diffstat (limited to 'scumm/verbs.cpp')
-rw-r--r-- | scumm/verbs.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scumm/verbs.cpp b/scumm/verbs.cpp index bc9261f80e..ef65db1030 100644 --- a/scumm/verbs.cpp +++ b/scumm/verbs.cpp @@ -157,6 +157,20 @@ void Scumm::drawVerb(int verb, int mode) return; assert(_messagePtr); + if ((_features & GF_AFTER_V8) && (_messagePtr[0] == '/')) { + char pointer[20]; + int i, j; + + translateText(_messagePtr, _transText); + + for (i = 0, j = 0; (_messagePtr[i] != '/' || j == 0) && j < 19; i++) { + if (_messagePtr[i] != '/') + pointer[j++] = _messagePtr[i]; + } + pointer[j] = 0; + _messagePtr = _transText; + } + tmp = _charset->_center; _charset->_center = 0; drawString(4); |