Skip to content

Commit

Permalink
Merge pull request bitcraze#610 from bitcraze/krichardsson/type-problems
Browse files Browse the repository at this point in the history
Fixed type problems
  • Loading branch information
knmcguire authored May 11, 2022
2 parents 46bc735 + 7edd347 commit 5053a81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cfclient/ui/widgets/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ def drawWidget(self, qp):
pos_y = -h / 6 * diff

# difference from target (moves up and down +- 2.8m)
qp.drawText(w - fh * 3.8, int(pos_y + fh / 2), str(diff))
qp.drawText(int(w - fh * 3.8), int(pos_y + fh / 2), str(diff))
# vertical line
qp.drawLine(w - fh * 4.5, 0, w - fh * 4.5, pos_y)
qp.drawLine(int(w - fh * 4.5), 0, int(w - fh * 4.5), int(pos_y))
# left horizontal line
qp.drawLine(w - fh * 4.7, 0, w - fh * 4.5, 0)
qp.drawLine(int(w - fh * 4.7), 0, int(w - fh * 4.5), 0)
# right horizontal line
qp.drawLine(w - fh * 4.2, pos_y, w - fh * 4.5, pos_y)
qp.drawLine(int(w - fh * 4.2), int(pos_y), int(w - fh * 4.5), int(pos_y))


if __name__ == "__main__":
Expand Down

0 comments on commit 5053a81

Please sign in to comment.