Remove unused BuildUnit overload from UnitBuilderBotModule

Unused and didn't check things like Buildable, so better just remove it.
This commit is contained in:
reaperrr
2019-01-06 02:52:19 +01:00
committed by abcdefg30
parent b2649749d9
commit 3a1656c3dd

View File

@@ -126,16 +126,6 @@ namespace OpenRA.Mods.Common.Traits
bot.QueueOrder(Order.StartProduction(queue.Actor, name, 1));
}
void BuildUnit(IBot bot, string category, string name)
{
var queue = AIUtils.FindQueues(player, category).FirstOrDefault(q => !q.AllQueued().Any());
if (queue == null)
return;
if (world.Map.Rules.Actors[name] != null)
bot.QueueOrder(Order.StartProduction(queue.Actor, name, 1));
}
// In cases where we want to build a specific unit but don't know the queue name (because there's more than one possibility)
void BuildUnit(IBot bot, string name)
{