diff options
-rwxr-xr-x | QueryServer.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/QueryServer.py b/QueryServer.py index 43a8fd6..5193a2b 100755 --- a/QueryServer.py +++ b/QueryServer.py @@ -180,8 +180,7 @@ class QueryServer(): player['name'] = player_name.decode('utf-8', errors='replace') playerdata = playerdata[nullterm+1:] - playerscore = (playerdata[3] << 24) + (playerdata[2] << 16) + \ - (playerdata[1] << 8) + (playerdata[0]) + playerscore = int(struct.unpack('i', playerdata[0:4])[0]) player['score'] = playerscore playerdata = playerdata[4:] |