Pārlūkot izejas kodu

don't exclude pheromons with same distance

Bastien Sevajol 9 gadus atpakaļ
vecāks
revīzija
0a4e581198

+ 1 - 1
intelligine/simulation/molecule/DirectionMolecule.py Parādīt failu

@@ -23,7 +23,7 @@ class DirectionMolecule():
23 23
         molecule = flavour.get_molecule(category=MOLECULES_DIRECTION, type=molecule_type)
24 24
 
25 25
         distance = molecule.get_distance()
26
-        around_molecule_filter = lambda around_molecule: around_molecule.get_distance() < distance #  TODO <= ?
26
+        around_molecule_filter = lambda around_molecule: around_molecule.get_distance() <= distance #  TODO <= ?
27 27
         if molecule_way == cls.WAY_DOWN:
28 28
             around_molecule_filter = lambda around_molecule: around_molecule.get_distance() >= distance
29 29
         around_molecules_points = cls._get_around_molecules(context, point, molecule_type,