forked from mirrors/0ad
faa049fe4b
In the (common) case that the player controls all selected units or is an observer, the 'Selection' and 'Command' panels were set up ahead and then in the for loop again, which was wasteful.