Mercurial > otakunoraifu
comparison 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 |
comparison
equal
deleted
inserted
replaced
20:824b89018ea8 | 21:d1bb7b365816 |
---|---|
1197 dprintf("Print."); | 1197 dprintf("Print."); |
1198 VarInfo info; | 1198 VarInfo info; |
1199 GetLeftToken(d, info); | 1199 GetLeftToken(d, info); |
1200 if (d[0] != 0x29 || info.type == -1) SetError(); | 1200 if (d[0] != 0x29 || info.type == -1) SetError(); |
1201 d++; | 1201 d++; |
1202 dprintf(";"); | 1202 dprintf(";");/* |
1203 // 数値を全角文字に変換して登録 | 1203 // 数値を全角文字に変換して登録 |
1204 char str[10], str2[20]; // itoa | 1204 char str[10], str2[20]; // itoa |
1205 sprintf(str, "%d", info.value); | 1205 sprintf(str, "%d", info.value); |
1206 int i; for (i=0; str[i] != 0; i++) { | 1206 int i; for (i=0; str[i] != 0; i++) { |
1207 str2[i*2] = 0xa3; | 1207 str2[i*2] = 0xa3; |
1208 str2[i*2+1] = 0xb0 + str[i]-'0'; | 1208 str2[i*2+1] = 0xb0 + str[i]-'0'; |
1209 } | 1209 } |
1210 str2[i*2] = 0; | 1210 str2[i*2] = 0;*/ |
1211 text += str2; | 1211 text += strheap + info.value; |
1212 } | 1212 } |
1213 } else { SetError(); break;} | 1213 } else { SetError(); break;} |
1214 } | 1214 } |
1215 d++; | 1215 d++; |
1216 /* @@@ */ | 1216 /* @@@ */ |