X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kagecgi%2Fkagecomb.c;h=68e1ac555f3e05f46adae1817421ddcda158a07b;hb=5f6d5b338d65dab4f7a893bfdedea22599eac3eb;hp=3b1ac74abc971663c7cbf74c762bdebc14c1c833;hpb=69bb94daa370115ef4895f3ffbd28a7d8ccd960e;p=chise%2Fkage.git diff --git a/kagecgi/kagecomb.c b/kagecgi/kagecomb.c index 3b1ac74..68e1ac5 100755 --- a/kagecgi/kagecomb.c +++ b/kagecgi/kagecomb.c @@ -377,9 +377,11 @@ void combineTate3(const KGString *parts1, const KGString *parts2, const KGString } void combineHame2(const KGString *parts1, const KGString *parts3, int *result){ - int i; + int i, flag; int *buf, strokes; + flag = 0; + //set results result[0] = 0; result[1] = 0; @@ -388,12 +390,18 @@ void combineHame2(const KGString *parts1, const KGString *parts3, int *result){ buf = convertStroke(parts1->str, buf, &strokes); for(i = 0; i < strokes; i++){ if(buf[i * 11 + 0] == 9){ - result[8] = buf[i * 11 + 3]; result[9] = buf[i * 11 + 4]; result[10] = buf[i * 11 + 5]; result[11] = buf[i * 11 + 6]; + flag = 1; } } - //not yet + if(flag == 0){ //error + result[8] = 50; + result[9] = 50; + result[10] = 150; + result[11] = 150; + } + //not yet }