aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kstring.cpp
diff options
context:
space:
mode:
authormd52011-05-29 21:12:37 +0300
committermd52011-05-29 21:12:37 +0300
commit1ea96002b88c5d65a5f6b1e093c83d48a3c6cbbb (patch)
tree91bb7965c64de0d27ca7019491ee236abe47fde0 /engines/sci/engine/kstring.cpp
parentc713628721e8b07fdec05e7ead85ab9ad144b48d (diff)
downloadscummvm-rg350-1ea96002b88c5d65a5f6b1e093c83d48a3c6cbbb.tar.gz
scummvm-rg350-1ea96002b88c5d65a5f6b1e093c83d48a3c6cbbb.tar.bz2
scummvm-rg350-1ea96002b88c5d65a5f6b1e093c83d48a3c6cbbb.zip
SCI: Added a more generalized fix for bug #3306417
Diffstat (limited to 'engines/sci/engine/kstring.cpp')
-rw-r--r--engines/sci/engine/kstring.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/engines/sci/engine/kstring.cpp b/engines/sci/engine/kstring.cpp
index add5b7b52d..c3c10bd2a2 100644
--- a/engines/sci/engine/kstring.cpp
+++ b/engines/sci/engine/kstring.cpp
@@ -67,21 +67,6 @@ reg_t kStrCpy(EngineState *s, int argc, reg_t *argv) {
else
s->_segMan->memcpy(argv[0], argv[1], -length);
} else {
- if (g_sci->getGameId() == GID_LAURABOW2 && g_sci->getLanguage() == Common::DE_DEU &&
- s->currentRoomNumber() == 360) {
- // One of the game texts in LB2 German contains loads of spaces in
- // its end. We trim the text here, otherwise the graphics code will
- // attempt to draw a very large window (larger than the screen) to
- // show the text, and crash.
- // Fixes bug #3306417.
- SegmentRef src = s->_segMan->dereference(argv[1]);
- if (src.maxSize == 7992) { // the problematic resource. Trim it.
- Common::String text = s->_segMan->getString(argv[1]);
- text.trim();
- s->_segMan->strcpy(argv[1], text.c_str());
- }
- }
-
s->_segMan->strcpy(argv[0], argv[1]);
}