Skip to content

Commit

Permalink
FAForever#1668-fix-faction-mapping (FAForever#1669)
Browse files Browse the repository at this point in the history
fixes FAForever#1668:
-changes the order in the Faction enum so it reflects the order the server reports in
-added a comment to explain why the order is important, since that is not intuitive
-that fixes the icons in the replay overview being wrong for everything but Sera
  • Loading branch information
FemtoZetta authored and Chris Haggan committed Apr 15, 2022
1 parent 185c479 commit fecdc49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/faforever/client/game/Faction.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

public enum Faction {
// Order is crucial
// Same order as the info from the server (1=UEF etc.)
UEF("uef"),
AEON("aeon"),
CYBRAN("cybran"),
UEF("uef"),
SERAPHIM("seraphim"),
RANDOM("random"),
CIVILIAN("civilian");
Expand Down

0 comments on commit fecdc49

Please sign in to comment.