소스 검색

Merge branch '1838-fix-rezone-camera-speed' into 'master'

fix #1838: Fix camera speed when rezoning while mounted

Closes #1838

See merge request Isleward/isleward!605
tags/v0.12.0
Big Bad Waffle 1 년 전
부모
커밋
ed9c6872ce
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. +6
    -0
      src/client/js/rendering/renderer.js

+ 6
- 0
src/client/js/rendering/renderer.js 파일 보기

@@ -326,6 +326,12 @@ define([
c.zoneId = this.zoneId;
events.emit('onGetObject', c);
});

//Normally, the mounts mod queues this event when unmounting.
// If we rezone, our effects are destroyed, so the event is queued,
// but flushForTarget clears the event right after and the event is never received.
// We emit it again here to make sure the speed is reset after entering the new zone.
events.emit('onMoveSpeedChange', 0);
},

setPosition: function (pos, instant) {


불러오는 중...
취소
저장