修改不存在判断

This commit is contained in:
王金平 2020-12-04 09:48:53 +08:00 committed by GitHub
parent 4677645b2f
commit 1b2ea4eb81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}