瀏覽代碼

got factories and mints working again in Toontown

Darren Ranalli 20 年之前
父節點
當前提交
0ff04705bf
共有 1 個文件被更改,包括 12 次插入6 次删除
  1. 12 6
      direct/src/distributed/ClientRepository.py

+ 12 - 6
direct/src/distributed/ClientRepository.py

@@ -674,8 +674,8 @@ class ClientRepository(ConnectionRepository):
         return doDict
 
     if wantOtpServer:
-        def sendEmulateSetZone(self, zoneId, visibleZoneList=None,
-                parentIdin=None, event=None):
+        def sendEmulateSetZoneMsg(self, zoneId, visibleZoneList=None,
+                                  parentIdin=None, event=None):
             """
             This Will Move The avatar and set an interest to that location ..
             """
@@ -683,11 +683,10 @@ class ClientRepository(ConnectionRepository):
             if parentId is None:
                 parentId = base.localAvatar.defaultShard
 
-            MyAvID = base.localAvatar.doId
-            # move thwe avatar..
-            self.sendSetLocation(MyAvID,parentId,zoneId)
-            # move the interest..
+            # move the avatar
+            self.sendSetLocation(base.localAvatar.doId,parentId,zoneId)
 
+            # move the interest
             InterestZones = zoneId
             if visibleZoneList is not None:
                 InterestZones = visibleZoneList
@@ -734,6 +733,13 @@ class ClientRepository(ConnectionRepository):
             # send the message
             self.send(datagram)
 
+            assert self.setZonesRequested >= self.setZonesReceived
+            self.setZonesRequested += 1
+
+        # override if desired
+        def handleSetZoneDone(self):
+            pass
+
     def handleDatagram(self, di):
         if self.notify.getDebug():
             print "ClientRepository received datagram:"