Fix ChangeFloor Time

This commit is contained in:
oc 2018-06-18 20:54:27 +08:00
parent 58ddc08c51
commit fdc0b14c3a
2 changed files with 2 additions and 2 deletions

View File

@ -591,7 +591,7 @@ direction为可选的指定的话将使勇士的朝向变成该方向
time为可选的指定的话将作为楼层切换动画的时间。
**time也可以置为0如果为0则没有楼层切换动画。**
**如果time指定为小于100则视为没有楼层切换动画。**
!> **changeFloor到达一个新的楼层将不会执行firstArrive事件如有需求请在到达点设置自定义事件然后使用type: trigger立刻调用之。**

View File

@ -1001,7 +1001,7 @@ events.prototype.changeFloor = function (floorId, stair, heroLoc, time, callback
else floorId=core.status.floorId;
}
var displayAnimate=!(time==0) && !core.status.replay.replaying;
var displayAnimate=(!core.isset(time) || time>=100) && !core.status.replay.replaying;
time = time || 800;
time /= 20;