From e70955844c49afc1dfb60e013b88a5644dce5713 Mon Sep 17 00:00:00 2001 From: Billy Brown Date: Sat, 2 Dec 2017 20:51:34 +0000 Subject: 1 --- client/game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/game.py b/client/game.py index 69470e7..a4ca325 100644 --- a/client/game.py +++ b/client/game.py @@ -121,7 +121,7 @@ class Game: if 'size' in msg: ball.size = (msg['size']['x'], msg['size']['y']) else: - ball_list[msg['ball_id']] = Ball(msg[0]['pos'],msg[0]['vel'],msg[0]['size']) + self.ball_list[msg['ball_id']] = Ball(msg[0]['pos'],msg[0]['vel'],msg[0]['size']) touched[msg['ball_id']] = True l_deltaT = c_time - msg['time'] @@ -131,7 +131,7 @@ class Game: if not self.was_n_down: t = 0 for x in range(0, 10**10): - if x not in ball_list: + if x not in self.ball_list: t = x msg = { 'ball_id': x, -- cgit v1.2.1