mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
lock/unlock simultaneously multiple dropsites when selected
This was SVN commit r18007.
This commit is contained in:
parent
90cb6ff6b6
commit
2392f6fe8e
1 changed files with 8 additions and 1 deletions
|
|
@ -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 a new issue