From d33f7929f2eb5b618fdc38c75cb01cbb1a77ffa5 Mon Sep 17 00:00:00 2001 From: schneider Date: Wed, 21 Dec 2011 19:39:53 +0100 Subject: [PATCH] remote: corrected packet format --- tools/game/r0ketrem0te/packets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/game/r0ketrem0te/packets.py b/tools/game/r0ketrem0te/packets.py index 21bf1fe..d7ab7f1 100644 --- a/tools/game/r0ketrem0te/packets.py +++ b/tools/game/r0ketrem0te/packets.py @@ -58,7 +58,7 @@ class Button(Packet): return s class Announce(Packet): - def __init__(self, gameMac, gameChannel, gameId, gameFlags, gameTitle, interval=30, jitter=16): + def __init__(self, gameMac, gameChannel, gameId, gameFlags, gameTitle, interval=5, jitter=10): #always a broadcast Packet.__init__(self, 'A', 0) self.gameMac = gameMac @@ -89,6 +89,8 @@ class Announce(Packet): s += ", gameChannel=%d"%self.gameChannel s += ", gameId=%d"%self.gameId s += ", gameFlags=%d"%self.gameFlags + s += ", interval=%d"%self.interval + s += ", jitter=%d"%self.jitter s += ", gameTitle="+self.gameTitle return s