Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/selection.js
Show First 20 Lines • Show All 209 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Update the selection to take care of changes (like units that have been killed) | * Update the selection to take care of changes (like units that have been killed) | ||||
*/ | */ | ||||
EntitySelection.prototype.update = function() | EntitySelection.prototype.update = function() | ||||
{ | { | ||||
this.checkRenamedEntities(); | this.checkRenamedEntities(); | ||||
let changed = false; | let changed = false; | ||||
let removeOwnerChanges = !g_IsObserver && !g_DevSettings.controlAll && this.toList().length > 1; | let removeOwnerChanges = !g_IsObserver && !g_DeveloperOverlay.isControlAll() && this.toList().length > 1; | ||||
Stan: isControlAll doesnt' seem line very good english.
ControlAllUnitsToggled ? | |||||
for (let ent in this.selected) | for (let ent in this.selected) | ||||
{ | { | ||||
let entState = GetEntityState(+ent); | let entState = GetEntityState(+ent); | ||||
// Remove deleted units | // Remove deleted units | ||||
if (!entState) | if (!entState) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 281 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
isControlAll doesnt' seem line very good english.
ControlAllUnitsToggled ?