Commit 4165cf14 authored by Big Bad Waffle's avatar Big Bad Waffle

tiny bracket cleanup

parent 73965296
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment