Differential D1677 Diff 6993 binaries/data/mods/public/maps/random/rmgen/placer/centered/ChainPlacer.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/rmgen/placer/centered/ChainPlacer.js
Show All 33 Lines | ChainPlacer.prototype.place = function(constraint) | ||||
if (!g_Map.inMapBounds(this.centerPosition) || !constraint.allows(this.centerPosition)) | if (!g_Map.inMapBounds(this.centerPosition) || !constraint.allows(this.centerPosition)) | ||||
return undefined; | return undefined; | ||||
let points = []; | let points = []; | ||||
let size = g_Map.getSize(); | let size = g_Map.getSize(); | ||||
let failed = 0; | let failed = 0; | ||||
let count = 0; | let count = 0; | ||||
let gotRet = new Array(size).fill(0).map(p => new Array(size).fill(-1)); | let gotRet = new Array(size).fill(0).map(p => new Int8Array(size).fill(-1)); | ||||
lyv: This seems like a sane change though. | |||||
--size; | --size; | ||||
this.minRadius = Math.min(this.maxRadius, Math.max(this.minRadius, 1)); | this.minRadius = Math.min(this.maxRadius, Math.max(this.minRadius, 1)); | ||||
let edges = [this.centerPosition]; | let edges = [this.centerPosition]; | ||||
for (let i = 0; i < this.numCircles; ++i) | for (let i = 0; i < this.numCircles; ++i) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
This seems like a sane change though.