This commit is contained in:
slweeb 2024-05-15 20:58:54 -04:00
parent 2f5e4b8192
commit 31b9c8535f
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ A fancier version of this changelog can be found here: https://sandboxels.R74n.c
~ Fixed: Gaps when drawing fast on mobile ~ Fixed: Gaps when drawing fast on mobile
~ Fixed: Middle clicking empty space causes freeze ~ Fixed: Middle clicking empty space causes freeze
~ Fixed: Bless and Rock Wall can't be drawn in a line ~ Fixed: Bless and Rock Wall can't be drawn in a line
~ Fixed: Gapes when drawing Bless and Rock Wall fast ~ Fixed: Gaps when drawing Bless and Rock Wall fast
~ Fixed: Bless and Rock Wall don't display info ~ Fixed: Bless and Rock Wall don't display info
~ Fixed: Bless and Rock Wall can't use Replace Mode ~ Fixed: Bless and Rock Wall can't use Replace Mode
~ Fixed: Brown Dwarf Suns can emit Light when eclipsed ~ Fixed: Brown Dwarf Suns can emit Light when eclipsed

View File

@ -13087,7 +13087,7 @@ behaviorRules = {
function circleCoords(x,y,radius) { function circleCoords(x,y,radius) {
var coords = []; var coords = [];
for (let i = Math.max(0, x - radius); i <= Math.min(width, x + radius); i++) { for (let i = Math.max(0, x - radius); i <= Math.min(width, x + radius); i++) {
for (let j = Math.max(0, y - radius); j <= Math.min(width, y + radius); j++) { for (let j = Math.max(0, y - radius); j <= Math.min(height, y + radius); j++) {
if (Math.pow(i - x, 2) + Math.pow(j - y, 2) <= Math.pow(radius, 2)) { if (Math.pow(i - x, 2) + Math.pow(j - y, 2) <= Math.pow(radius, 2)) {
coords.push({x: i,y: j}); coords.push({x: i,y: j});
} }