From: kamichi Date: Wed, 2 Jan 2013 11:43:12 +0000 (+0900) Subject: updated X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a12f7c571f9fc838bb0bd97f6f392558ba5bc6bb;p=chise%2Fkage.git updated --- diff --git a/engine/kage.js b/engine/kage.js index 9a53ec8..a707c88 100755 --- a/engine/kage.js +++ b/engine/kage.js @@ -80,7 +80,7 @@ function Kage(size){ mn = lpx + 18; } for(var j = 0; j < sa.length; j++){ - if(i != j && sa[j][0] == 1 && sa[j][3] == sa[j][5] && sa[j][4] <= lpy && sa[j][6] >= lpy){ + if(i != j && sa[j][0] == 1 && sa[j][3] == sa[j][5] && sa[j][3] < lpx && sa[j][4] <= lpy && sa[j][6] >= lpy){ if(lpx - sa[j][3] < 100){ mn = Math.min(mn, lpx - sa[j][3]); }