move suggestResync to DistributedSmoothNode

This commit is contained in:
David Rose 2003-07-03 16:41:01 +00:00
parent 0c7e048d28
commit f12cb81d9d

View File

@ -317,3 +317,19 @@ class DistributedSmoothNode(DistributedNode.DistributedNode):
else:
NodePath.wrtReparentTo(self, parent)
### Monitor clock sync ###
def d_suggestResync(self, avId):
self.sendUpdate("suggestResync", [avId])
def suggestResync(self, avId):
"""suggestResync(self, avId)
This message is sent from one client to another when the other
client receives a timestamp from this client that is so far
out of date as to suggest that one or both clients needs to
resynchronize with the AI.
"""
if self.cr.timeManager != None:
self.cr.timeManager.synchronize("suggested by %d" % (avId))