Commit 522ca8d9 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Ioannis Papagiannopoulos

correction in CoreObject, signalGiver

parent ab83067e
...@@ -282,7 +282,7 @@ class CoreObject(Process): ...@@ -282,7 +282,7 @@ class CoreObject(Process):
activeEntity.hot = True activeEntity.hot = True
#======================================================================= #=======================================================================
# # TESTING # # TESTING
# print now(), activeEntity.id, "got into "+self.id # print now(), activeEntity.name, "got into "+self.id
#======================================================================= #=======================================================================
# update wipStatList # update wipStatList
if self.gatherWipStat: if self.gatherWipStat:
...@@ -333,7 +333,7 @@ class CoreObject(Process): ...@@ -333,7 +333,7 @@ class CoreObject(Process):
def signalGiver(self): def signalGiver(self):
activeObject=self.getActiveObject() activeObject=self.getActiveObject()
possibleGivers=[] possibleGivers=[]
for object in [x for x in activeObject.next if x.haveToDispose(activeObject)]: for object in [x for x in activeObject.previous if x.haveToDispose(activeObject)]:
possibleGivers.append(object) possibleGivers.append(object)
if possibleGivers: if possibleGivers:
activeObject.giver=activeObject.selectGiver(possibleGivers) activeObject.giver=activeObject.selectGiver(possibleGivers)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment