mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-27 20:28:27 +00:00
Debug values are shown correctly now.
svn-id: r15235
This commit is contained in:
parent
8950f78699
commit
4871a2af19
@ -558,13 +558,13 @@ void ScummEngine_v72he::copyScriptString(byte *dst) {
|
||||
|
||||
void ScummEngine_v72he::decodeScriptString(byte *dst, bool scriptString) {
|
||||
int args[31];
|
||||
int num = 0, val = 0;
|
||||
int len;
|
||||
int num = 0, val;
|
||||
int len, id;
|
||||
byte chr, string[256];
|
||||
memset(string, 0, sizeof(string));
|
||||
|
||||
getStackList(args, ARRAYSIZE(args));
|
||||
int id = pop();
|
||||
val = getStackList(args, ARRAYSIZE(args));
|
||||
args[val] = id = pop();
|
||||
|
||||
if (scriptString) {
|
||||
addMessageToStack(_scriptPointer, string, sizeof(string));
|
||||
@ -580,7 +580,7 @@ void ScummEngine_v72he::decodeScriptString(byte *dst, bool scriptString) {
|
||||
if (chr == '%') {
|
||||
chr = string[num++];
|
||||
if (chr == 'd') {
|
||||
dst += snprintf((char *)dst, 10, "%d", args[val++]);
|
||||
dst += snprintf((char *)dst, 10, "%d", args[val--]);
|
||||
continue;
|
||||
} else if (chr == 's') {
|
||||
dst += addStringToStack(dst, 512, id++);
|
||||
|
Loading…
Reference in New Issue
Block a user