소스 검색

bug: Fixed lighting efects crashing in some cases

tags/v0.12.0.9^2
Shaun 1 년 전
부모
커밋
3227f3a91a
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. +6
    -0
      src/server/clientComponents/lightningEffect.js

+ 6
- 0
src/server/clientComponents/lightningEffect.js 파일 보기

@@ -25,6 +25,12 @@ define([
init: function () {
effects.register(this);

if (this.toX === undefined && this.target === undefined) {
this.destroyed = true;

return;
}

let { toX = this.target.x, toY = this.target.y } = this;

const fromX = this.obj.x + ((toX >= this.obj.x) ? 1 : 0);


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