Skip to content

Commit

Permalink
Fix debug_text_simple
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnySc2 authored and tweakimp committed Feb 2, 2019
1 parent 32cd48d commit 2403640
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 @@ -474,7 +474,7 @@ def to_debug_message(
""" Helper function to create debug texts """
color = self.to_debug_color(color)
pt3d = self.to_debug_point(pos) if isinstance(pos, Point3) else None
virtual_pos = self.to_debug_point(pos) if not isinstance(pos, Point3) else None
virtual_pos = self.to_debug_point(pos) if pos is not None and not isinstance(pos, Point3) else None

return debug_pb.DebugText(color=color, text=text, virtual_pos=virtual_pos, world_pos=pt3d, size=size)

Expand Down

0 comments on commit 2403640

Please sign in to comment.