From b64f632e80eba0ea9eff2c2fcc082b92a0676844 Mon Sep 17 00:00:00 2001 From: kamichi Date: Wed, 2 Jan 2013 21:24:15 +0900 Subject: [PATCH] updated --- engine/kage.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/kage.js b/engine/kage.js index a707c88..cbb41b4 100755 --- a/engine/kage.js +++ b/engine/kage.js @@ -65,15 +65,18 @@ function Kage(size){ function adjustHane(sa){ // strokesArray for(var i = 0; i < sa.length; i++){ - if((sa[i][0] == 1 || sa[i][0] == 2) && sa[i][2] == 4){ + if((sa[i][0] == 1 || sa[i][0] == 2 || sa[i][0] == 6) && sa[i][2] == 4){ var lpx; // lastPointX var lpy; // lastPointY if(sa[i][0] == 1){ lpx = sa[i][5]; lpy = sa[i][6]; - } else { + } else if(sa[i][0] == 2){ lpx = sa[i][7]; lpy = sa[i][8]; + } else { + lpx = sa[i][9]; + lpy = sa[i][10]; } var mn = Infinity; // mostNear if(lpx + 18 < 100){ -- 1.7.10.4