Browse Source

fix ant.put.max_objects_at_same_position

Bastien Sevajol 8 years ago
parent
commit
b1beefbefd

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

@@ -70,7 +70,7 @@ class AntPutBrainPart(TransportBrainPart):
70 70
     @classmethod
71 71
     def _position_is_enought_place(cls, context, position):
72 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 74
             return True
75 75
         return False
76 76