From 1b2ea4eb81ab29e95ef4978929e689885a73c070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=87=91=E5=B9=B3?= <32758131+NameWjp@users.noreply.github.com> Date: Fri, 4 Dec 2020 09:48:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8D=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 50e613e..76bbe3d 100644 --- a/index.js +++ b/index.js @@ -926,7 +926,7 @@ update:function(){ var coord = this.coord; if(!coord.offset){ - if(this.control.orientation!='undefined'){ + if(typeof this.control.orientation != 'undefined'){ if(!map.get(coord.x+_COS[this.control.orientation],coord.y+_SIN[this.control.orientation])){ this.orientation = this.control.orientation; }