updated
authorkamichi <kamichi@fonts.jp>
Wed, 2 Jan 2013 12:24:15 +0000 (21:24 +0900)
committerkamichi <kamichi@fonts.jp>
Wed, 2 Jan 2013 12:24:15 +0000 (21:24 +0900)
engine/kage.js

index a707c88..cbb41b4 100755 (executable)
@@ -65,15 +65,18 @@ function Kage(size){
   \r
   function adjustHane(sa){ // strokesArray\r
       for(var i = 0; i < sa.length; i++){\r
-         if((sa[i][0] == 1 || sa[i][0] == 2) && sa[i][2] == 4){\r
+         if((sa[i][0] == 1 || sa[i][0] == 2 || sa[i][0] == 6) && sa[i][2] == 4){\r
              var lpx; // lastPointX\r
              var lpy; // lastPointY\r
              if(sa[i][0] == 1){\r
                  lpx = sa[i][5];\r
                  lpy = sa[i][6];\r
-             } else {\r
+             } else if(sa[i][0] == 2){\r
                  lpx = sa[i][7];\r
                  lpy = sa[i][8];\r
+             } else {\r
+                 lpx = sa[i][9];\r
+                 lpy = sa[i][10];\r
              }\r
              var mn = Infinity; // mostNear\r
              if(lpx + 18 < 100){\r