Differential D387 Diff 2732 ps/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
Show First 20 Lines • Show All 1,684 Lines • ▼ Show 20 Lines | for (let ent of data.snapEntities) | ||||
}; | }; | ||||
} | } | ||||
} | } | ||||
if (minDistEntitySnapData != null) | if (minDistEntitySnapData != null) | ||||
return minDistEntitySnapData; | return minDistEntitySnapData; | ||||
} | } | ||||
if (template.BuildRestrictions.Category == "Dock") | if (template.BuildRestrictions.PlacementType == "shore") | ||||
{ | { | ||||
let angle = GetDockAngle(template, data.x, data.z); | let angle = GetDockAngle(template, data.x, data.z); | ||||
if (angle !== undefined) | if (angle !== undefined) | ||||
return { | return { | ||||
"x": data.x, | "x": data.x, | ||||
"z": data.z, | "z": data.z, | ||||
"angle": angle | "angle": angle | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 325 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator