aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v8.cpp
diff options
context:
space:
mode:
authorJames Brown2003-01-26 11:13:46 +0000
committerJames Brown2003-01-26 11:13:46 +0000
commit00f7e562fd9f7b17701d5ab22aa57bb0174f8549 (patch)
treef38c3b2716ce3419030f9e0431ed89feba32b423 /scumm/script_v8.cpp
parentd1eb2636f4b17e261a886e93b2da6fbb5008eb0a (diff)
downloadscummvm-rg350-00f7e562fd9f7b17701d5ab22aa57bb0174f8549.tar.gz
scummvm-rg350-00f7e562fd9f7b17701d5ab22aa57bb0174f8549.tar.bz2
scummvm-rg350-00f7e562fd9f7b17701d5ab22aa57bb0174f8549.zip
Remove a experimental hack that went in by accident
svn-id: r6549
Diffstat (limited to 'scumm/script_v8.cpp')
-rw-r--r--scumm/script_v8.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp
index d0cd604bab..2fd6a1e31f 100644
--- a/scumm/script_v8.cpp
+++ b/scumm/script_v8.cpp
@@ -1717,18 +1717,14 @@ void Scumm_v8::o8_getObjectImageHeight()
void Scumm_v8::o8_getStringWidth()
{
- char temp[1024];
int charset = pop();
int len = resStrLen(_scriptPointer);
int oldID = _charset->getCurID();
int width;
- // Parse the string to get rid of substitution codes
- strcpy(temp, (char*)_scriptPointer);
- addMessageToStack((byte*)&temp);
// Temporary set the specified charset id
_charset->setCurID(charset);
- width = _charset->getStringWidth(0, (byte*)temp);
+ width = _charset->getStringWidth(0, _scriptPointer);
_charset->setCurID(oldID);
push(width);