Skip to content

Commit

Permalink
Merge pull request Dentosal#284 from UltraMachine/patch-1
Browse files Browse the repository at this point in the history
correct debug colors in client.py
  • Loading branch information
tweakimp authored May 30, 2019
2 parents e487e90 + e3001d1 commit 307e576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sc2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def to_debug_color(self, color):
if color is None:
return debug_pb.Color(r=255, g=255, b=255)
elif isinstance(color, tuple) and len(color) == 3:
return debug_pb.Color(r=color[0], g=color[1], b=color[1])
return debug_pb.Color(r=color[0], g=color[1], b=color[2])
else:
r = getattr(color, "r", getattr(color, "x", 255))
g = getattr(color, "g", getattr(color, "y", 255))
Expand Down

0 comments on commit 307e576

Please sign in to comment.