updated 方向控制

This commit is contained in:
郑浩乐 2016-01-04 17:10:29 +08:00
parent 5c95bb333d
commit 2b8b237a56

View File

@ -224,7 +224,7 @@
var coord = map.position2coord(this.x,this.y);
var inPlace = !coord.offset;
if(inPlace){
if(this.control.orientation){
if(typeof this.control.orientation!='undefined'){
switch(this.control.orientation){
case 0:
if(!map.get(coord.x,coord.y-1)){
@ -248,7 +248,7 @@
break;
}
}
this.control.orientation = null;
this.control = {};
}
switch(this.orientation){
case 0: