소스 검색

tiny bracket cleanup

tags/v0.8.0
Shaun 4 년 전
부모
커밋
4165cf140e
1개의 변경된 파일8개의 추가작업 그리고 7개의 파일을 삭제
  1. +8
    -7
      src/server/world/map.js

+ 8
- 7
src/server/world/map.js 파일 보기

@@ -435,14 +435,15 @@ module.exports = {
if (!mapFile.properties.isRandom)
spawners.register(blueprint, blueprint.spawnCd || mapFile.properties.spawnCd);
else {
let room = this.rooms.find(function (r) {
return (!(
(blueprint.x < r.x) ||
(blueprint.y < r.y) ||
(blueprint.x >= r.x + r.width) ||
(blueprint.y >= r.y + r.height)
));
let room = this.rooms.find(r => {
return !(
blueprint.x < r.x ||
blueprint.y < r.y ||
blueprint.x >= r.x + r.width ||
blueprint.y >= r.y + r.height
);
});

room.objects.push(blueprint);
}
} else {


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