Browse Source

prevent uberdog formatting freezes

Zachary Pavlov 15 years ago
parent
commit
b069a57a56
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/distributed/DistributedObjectGlobalUD.py

+ 2 - 2
direct/src/distributed/DistributedObjectGlobalUD.py

@@ -25,8 +25,8 @@ class DistributedObjectGlobalUD(DistributedObjectUD):
         DistributedObjectUD.delete(self)
         DistributedObjectUD.delete(self)
 
 
     def execCommand(self, command, mwMgrId, avId, zoneId):
     def execCommand(self, command, mwMgrId, avId, zoneId):
-        text = self.__execMessage(command)
-        print text
+        text = str(self.__execMessage(command))[:config.GetInt("ai-debug-length",300)]
+        
         dclass = uber.air.dclassesByName.get("PiratesMagicWordManagerAI")
         dclass = uber.air.dclassesByName.get("PiratesMagicWordManagerAI")
         dg = dclass.aiFormatUpdate(
         dg = dclass.aiFormatUpdate(
             "setMagicWordResponse", mwMgrId, (1<<32)+avId, uber.air.ourChannel, [text])
             "setMagicWordResponse", mwMgrId, (1<<32)+avId, uber.air.ourChannel, [text])