lock/unlock simultaneously multiple dropsites when selected

This was SVN commit r18007.
This commit is contained in:
mimo 2016-04-08 20:48:10 +00:00
parent 90cb6ff6b6
commit 2392f6fe8e

View File

@ -914,9 +914,16 @@ var g_EntityCommands =
},
"execute": function(entState)
{
let entities = [];
for (let ent of g_Selection.toList())
{
let state = GetExtendedEntityState(ent);
if (state && state.resourceDropsite && state.resourceDropsite.sharable)
entities.push(state.id);
}
Engine.PostNetworkCommand({
"type": "set-dropsite-sharing",
"entities": [entState.id],
"entities": entities,
"shared": !entState.resourceDropsite.shared
});
},