Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/selection_panels_helpers.js
Show First 20 Lines • Show All 238 Lines • ▼ Show 20 Lines | |||||
function performCommand(entStates, commandName) | function performCommand(entStates, commandName) | ||||
{ | { | ||||
if (!entStates.length) | if (!entStates.length) | ||||
return; | return; | ||||
// Don't check all entities, because we assume a player cannot | // Don't check all entities, because we assume a player cannot | ||||
// select entities from more than one player | // select entities from more than one player | ||||
if (!controlsPlayer(entStates[0].player) && | if (//!controlsPlayer(entStates[0].player) && | ||||
!(g_IsObserver && commandName == "focus-rally")) | !(g_IsObserver && commandName == "focus-rally")) | ||||
Silier: !g_IsObserver || ... | |||||
Done Inline Actionslooking again, actually second part should be negated because behaviour is switched for not observer with rally point and without that command Silier: looking again, actually second part should be negated because behaviour is switched for not… | |||||
return; | return; | ||||
if (g_EntityCommands[commandName]) | if (g_EntityCommands[commandName]) | ||||
g_EntityCommands[commandName].execute(entStates); | g_EntityCommands[commandName].execute(entStates); | ||||
} | } | ||||
function performAllyCommand(entity, commandName) | function performAllyCommand(entity, commandName) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 225 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
!g_IsObserver || ...