Allow actors to exist in multiple building queues.

This commit is contained in:
Paul Chote
2013-07-12 21:52:09 +12:00
parent d43acfe94b
commit c5089db19c
5 changed files with 11 additions and 9 deletions

View File

@@ -393,7 +393,7 @@ namespace OpenRA.Mods.RA.Scripting
if (bi == null)
return null;
return GetSharedQueueForCategory(player, bi.Queue);
return bi.Queue.Select(q => GetSharedQueueForCategory(player, q)).FirstOrDefault();
}
[LuaGlobal]