Cleanup prints

This commit is contained in:
Tomasz Fluxid Kowalczyk 2012-01-29 16:18:38 +01:00
parent c9bb239506
commit 4bbf635c6b
2 changed files with 2 additions and 5 deletions

View File

@ -119,7 +119,6 @@ class Manager(object):
return
self.counter += 1
if self.protocol:
print 'sent', self.counter
self.protocol.send_state(self.counter, self.player_paused, self.player_position)
self.schedule_send_status()
@ -128,12 +127,12 @@ class Manager(object):
self.player_position = value
diff = self.get_current_global_position() - value
if not self.global_paused and 0.6 <= abs(diff) <= 4:
print 'server is %0.2fs ahead of client' % diff
#print 'server is %0.2fs ahead of client' % diff
if diff > 0:
speed = 1.5
else:
speed = 0.75
print 'fixing at speed %0.2f' % speed
#print 'fixing at speed %0.2f' % speed
self.player.send_set_speed(speed)
else:
self.player.send_set_speed(1)
@ -148,7 +147,6 @@ class Manager(object):
self.global_paused = paused
self.global_position = position
self.last_global_update = time.time()
print 'received', counter
if self.player and not (self.counter and counter < self.counter):
changed = False
if abs(self.player_position - position) > 4:

View File

@ -208,7 +208,6 @@ class SyncFactory(Factory):
watcher.ping = ping
else:
watcher.ping = watcher.ping*0.6 + ping*0.4
print watcher.name, watcher.ping
self.schedule_send_ping(watcher_proto)