updated 来回穿越,NPC消失问题解决

This commit is contained in:
郑浩乐
2016-01-07 14:41:44 +08:00
parent a8aece5173
commit 8f7ce44514
2 changed files with 10 additions and 10 deletions

View File

@@ -290,13 +290,13 @@
});
if(this.path.length){
this.vector = this.path[0];
if(this.vector.change){ //是否转变方向
this.coord.x = this.vector.x;
this.coord.y = this.vector.y;
var pos = map.coord2position(this.coord.x,this.coord.y);
this.x = pos.x;
this.y = pos.y;
}
}
if(this.vector.change){ //是否转变方向
this.coord.x = this.vector.x;
this.coord.y = this.vector.y;
var pos = map.coord2position(this.coord.x,this.coord.y);
this.x = pos.x;
this.y = pos.y;
}
if(this.vector.x>this.coord.x){
this.orientation = 0;