Mercurial > otakunoraifu
diff scn2k/scn2k_cmd.cc @ 21:d1bb7b365816
Fixed dynamic strings in selections (Fuko Pranks for instance)
author | thib |
---|---|
date | Fri, 31 Oct 2008 14:30:37 +0000 |
parents | a05bf0823154 |
children | d229cce98f50 |
line wrap: on
line diff
--- a/scn2k/scn2k_cmd.cc +++ b/scn2k/scn2k_cmd.cc @@ -1199,7 +1199,7 @@ void Cmd::GetSelection(const char*& d) { GetLeftToken(d, info); if (d[0] != 0x29 || info.type == -1) SetError(); d++; - dprintf(";"); + dprintf(";");/* // 数値を全角文字に変換して登録 char str[10], str2[20]; // itoa sprintf(str, "%d", info.value); @@ -1207,8 +1207,8 @@ void Cmd::GetSelection(const char*& d) { str2[i*2] = 0xa3; str2[i*2+1] = 0xb0 + str[i]-'0'; } - str2[i*2] = 0; - text += str2; + str2[i*2] = 0;*/ + text += strheap + info.value; } } else { SetError(); break;} }