[Scummvm-cvs-logs] CVS: scummvm/scumm script_v8.cpp,2.131,2.132
James Brown
ender at users.sourceforge.net
Sun Jan 26 03:14:05 CET 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv29252/scumm
Modified Files:
script_v8.cpp
Log Message:
Remove a experimental hack that went in by accident
Index: script_v8.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v8.cpp,v
retrieving revision 2.131
retrieving revision 2.132
diff -u -d -r2.131 -r2.132
--- script_v8.cpp 26 Jan 2003 10:54:34 -0000 2.131
+++ script_v8.cpp 26 Jan 2003 11:13:46 -0000 2.132
@@ -1717,18 +1717,14 @@
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);
More information about the Scummvm-git-logs
mailing list