From b069a57a56c859882a104bd0ce30e245aa67817a Mon Sep 17 00:00:00 2001 From: Zachary Pavlov Date: Wed, 6 Oct 2010 22:44:32 +0000 Subject: [PATCH] prevent uberdog formatting freezes --- direct/src/distributed/DistributedObjectGlobalUD.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/distributed/DistributedObjectGlobalUD.py b/direct/src/distributed/DistributedObjectGlobalUD.py index b3cc8669ae..8af8a0ecb8 100755 --- a/direct/src/distributed/DistributedObjectGlobalUD.py +++ b/direct/src/distributed/DistributedObjectGlobalUD.py @@ -25,8 +25,8 @@ class DistributedObjectGlobalUD(DistributedObjectUD): DistributedObjectUD.delete(self) 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") dg = dclass.aiFormatUpdate( "setMagicWordResponse", mwMgrId, (1<<32)+avId, uber.air.ourChannel, [text])