From 5cad7825f33d7c144a3677e339b55a1b27613fc3 Mon Sep 17 00:00:00 2001 From: informaniac Date: Fri, 1 Dec 2017 18:12:32 +0100 Subject: [PATCH] removed old data retrival via socket --- games/ttrs.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/games/ttrs.py b/games/ttrs.py index a816156..a7385bd 100755 --- a/games/ttrs.py +++ b/games/ttrs.py @@ -249,13 +249,6 @@ class BalanceTtrsPlayer(TtrsPlayer, threading.Thread): oldevt = None lastchange = 0 while self.running: - sock.send(b'a') - data = sock.recv(4) - p0x, p0y, p1x, p1y = struct.unpack('bbbb', data) - if self.player_id == 0: - xbal, ybal = p0x, p0y - elif self.player_id == 1: - xbal, ybal = p1x, p1y #print('player_id=%d xbal=%d ybal=%d' % (self.player_id, xbal, ybal)) if xbal == -128 or ybal == -128: