aboutsummaryrefslogtreecommitdiff
path: root/client/game.py
diff options
context:
space:
mode:
authorBilly Brown2017-12-02 19:46:34 +0000
committerBilly Brown2017-12-02 19:46:34 +0000
commit7ee937f98c9b82e28dcafa96bf6b09e94bd6b28d (patch)
treeaa8f856aa63e857545597f3bcca339c22d13fe1e /client/game.py
parentMerge branch 'master' of https://github.com/magnostherobot/longpong (diff)
downloadlongpong-7ee937f98c9b82e28dcafa96bf6b09e94bd6b28d.tar.gz
longpong-7ee937f98c9b82e28dcafa96bf6b09e94bd6b28d.zip

Fixed total_w error

Diffstat (limited to 'client/game.py')
-rw-r--r--client/game.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/game.py b/client/game.py
index 738cec2..1c7ca89 100644
--- a/client/game.py
+++ b/client/game.py
@@ -57,7 +57,7 @@ class Game:
print(self.ball_list)
if (msg[0]['info']['offset'] == 0):
self.paddle_list.append(Paddle((0.1, 0.1), (0.01, 0.1)))
- elif (self.renderer.get_rightmost_edge() == msg[0]['total_w']):
+ elif (self.renderer.get_rightmost_edge() == msg[0]['info']['total_w']):
self.paddle_list.append(Paddle((0.1, 0.1), (0.01, 0.1)))
break
# Tell the server to start if the spacebar is pressed