📝 You can now play against yourself

This commit is contained in:
jona605a
2020-08-11 21:57:17 +02:00
parent 5623accd47
commit f0044bcfb1
3 changed files with 16 additions and 9 deletions

View File

@@ -162,7 +162,7 @@ def drawSwap(channel):
# Write player names and color
for p in [1,2]:
playername = getName(data[channel]["players"][p-1])
playername = getName(data[channel]["players"][p%2])
x = X_NAME[p]
x -= NAME_fnt.getsize(playername)[0] if p==2 else 0 # player2's name is right-aligned