mirror of
https://github.com/pret/pokediamond.git
synced 2026-09-07 08:36:24 -05:00
Fix two dumps
This commit is contained in:
@@ -116,12 +116,14 @@ string MessagesDecoder::DecodeMessage(u16string &message, int &i) {
|
||||
decoded += command;
|
||||
int nargs = message[j++];
|
||||
debug_printf("%04X ", nargs);
|
||||
decoded += ' ';
|
||||
if (is_strvar) {
|
||||
decoded += to_string(code & 0xFF);
|
||||
if (nargs != 0)
|
||||
decoded += ',';
|
||||
}
|
||||
for (int k = 0; k < nargs; k++) {
|
||||
decoded += ' ';
|
||||
if (is_strvar) {
|
||||
decoded += to_string(code & 0xFF) + ", ";
|
||||
is_strvar = false;
|
||||
}
|
||||
decoded += to_string(message[j + k]);
|
||||
debug_printf("%04X ", message[j + k]);
|
||||
if (k != nargs - 1)
|
||||
|
||||
Reference in New Issue
Block a user