Browse Source

fix ant.put.max_objects_at_same_position

Bastien Sevajol 9 years ago
parent
commit
b1beefbefd

+ 1 - 1
intelligine/simulation/object/brain/part/transport/AntPutBrainPart.py View File

70
     @classmethod
70
     @classmethod
71
     def _position_is_enought_place(cls, context, position):
71
     def _position_is_enought_place(cls, context, position):
72
         count_obj_here = len(context.metas.list.get(POSITIONS, position, allow_empty=True))
72
         count_obj_here = len(context.metas.list.get(POSITIONS, position, allow_empty=True))
73
-        if count_obj_here <= Core.get_configuration_manager().get('ant.put.max_objects_at_same_position', 5):
73
+        if count_obj_here < Core.get_configuration_manager().get('ant.put.max_objects_at_same_position', 5):
74
             return True
74
             return True
75
         return False
75
         return False
76
 
76