Page MenuHomeWildfire Games

Use Array instead of Set in GUIInterface.entsWithAuraAndStatusBars
AbandonedPublic

Authored by elexis on Dec 9 2017, 4:05 PM.

Details

Reviewers
None
Summary

The Set is converted to an Array using the spread operator.
The only use thereof is getting a subset of the array, which currently is implemented with a filter function.
Constructing the array manually would require 4 lines, don't see the need to.
But avoiding the conversion and ugly spread operator were nice.

Test Plan

See the aura icons still above the units.

Event Timeline

elexis created this revision.Dec 9 2017, 4:05 PM
Vulcan added a subscriber: Vulcan.Dec 9 2017, 4:44 PM

Successful build - Chance fights ever on the side of the prudent.

Updating workspaces...
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (308 tests)....................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (308 tests)....................................................................................................................................................................................................................................................................................................................OK!
Checking XML files...
Vulcan added a comment.Dec 9 2017, 4:45 PM
Executing section Default...
Executing section Source...
Executing section JS...
elexis abandoned this revision.Dec 16 2017, 5:47 PM
elexis added inline comments.Dec 16 2017, 5:50 PM
binaries/data/mods/public/simulation/components/GuiInterface.js
909

spread removed in rP20657

1113

unrelated, came from D555