mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
clean some useless code
This was SVN commit r14214.
This commit is contained in:
parent
e8d8673734
commit
09d5507ecb
2 changed files with 1 additions and 15 deletions
|
|
@ -1795,9 +1795,7 @@ function performCommand(entity, commandName)
|
|||
if (entity)
|
||||
{
|
||||
var entState = GetEntityState(entity);
|
||||
|
||||
var playerID = Engine.GetPlayerID();
|
||||
var simState = GetSimState();
|
||||
|
||||
if (entState.player == playerID || g_DevSettings.controlAll)
|
||||
{
|
||||
|
|
@ -1850,18 +1848,6 @@ function performCommand(entity, commandName)
|
|||
break;
|
||||
}
|
||||
}
|
||||
else if (simState.players[playerID].isMutualAlly[entState.player])
|
||||
{
|
||||
switch (commandName)
|
||||
{
|
||||
case "garrison":
|
||||
inputState = INPUT_PRESELECTEDACTION;
|
||||
preSelectedAction = ACTION_GARRISON;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3037,7 +3037,7 @@ UnitAI.prototype.FinishOrder = function()
|
|||
}
|
||||
|
||||
// Remove the order from the queue
|
||||
var finishedOrder = this.orderQueue.shift();
|
||||
this.orderQueue.shift();
|
||||
this.order = this.orderQueue[0];
|
||||
|
||||
if (this.orderQueue.length)
|
||||
|
|
|
|||
Loading…
Reference in a new issue