forked from 0ad/0ad
lock/unlock simultaneously multiple dropsites when selected
This was SVN commit r18007.
This commit is contained in:
parent
90cb6ff6b6
commit
2392f6fe8e
@ -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
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user