Explorar el Código

changed debug print

Dave Schuyler hace 22 años
padre
commit
5642bbee44
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      direct/src/level/Level.py

+ 3 - 3
direct/src/level/Level.py

@@ -37,8 +37,8 @@ class Level:
         self.initialized = 0
         self.initialized = 0
 
 
     def initializeLevel(self, levelId, levelSpec, scenarioIndex):
     def initializeLevel(self, levelId, levelSpec, scenarioIndex):
-        """ subclass should call this as soon as it has located
-        its spec data """
+        """subclass should call this as soon as it has located
+        its spec data"""
         self.levelId = levelId
         self.levelId = levelId
         self.levelSpec = levelSpec
         self.levelSpec = levelSpec
         self.scenarioIndex = scenarioIndex
         self.scenarioIndex = scenarioIndex
@@ -205,7 +205,7 @@ class Level:
         if __debug__:
         if __debug__:
             if entId in self.entities:
             if entId in self.entities:
                 self.notify.warning(
                 self.notify.warning(
-                    'entity %s already in entity table... '
+                    'entity %s already in entity table... '%(entId)+
                     'make sure distributedEntity is calling down to '
                     'make sure distributedEntity is calling down to '
                     'Entity.destroy!')
                     'Entity.destroy!')
         self.entities[entId] = entity
         self.entities[entId] = entity