clean some useless code

This was SVN commit r14214.
This commit is contained in:
mimo 2013-11-19 21:27:23 +00:00
parent e8d8673734
commit 09d5507ecb
2 changed files with 1 additions and 15 deletions

View file

@ -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;
}
}
}
}

View file

@ -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)