diff --git a/direct/src/distributed/DistributedSmoothNode.py b/direct/src/distributed/DistributedSmoothNode.py index 4f26bc1986..0d2c04106c 100644 --- a/direct/src/distributed/DistributedSmoothNode.py +++ b/direct/src/distributed/DistributedSmoothNode.py @@ -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))