Change debugInput opcode result to zerod array for now, since it expects input string

svn-id: r20901
This commit is contained in:
Travis Howell 2006-02-26 00:32:10 +00:00
parent 0cb17f18b3
commit 76962c3ce6
2 changed files with 5 additions and 6 deletions

View File

@ -1718,13 +1718,12 @@ void ScummEngine_v72he::o72_debugInput() {
byte string[255];
copyScriptString(string, sizeof(string));
int len = resStrLen(string) + 1;
debug(0,"o72_debugInput: String %s", string);
// TODO: Request input and store string result in array
writeVar(0, 0);
ArrayHeader *ah = defineArray(0, kStringArray, 0, 0, 0, len);
memcpy(ah->data, string, len);
defineArray(0, kStringArray, 0, 0, 0, 0);
push(readVar(0));
debug(1,"o72_debugInput: String %s", string);
}
void ScummEngine_v72he::o72_jumpToScript() {

View File

@ -548,8 +548,8 @@ void Wiz::copyRawWizImage(uint8 *dst, const uint8 *src, int dstw, int dsth, int
}
palPtr = imagePal;
}
int h = r1.height();
int w = r1.width();
int h = r1.height() + 1;
int w = r1.width() + 1;
src += r1.left + r1.top * srcw;
dst += r2.left + r2.top * dstw;
while (h--) {