Преглед на файлове

don't exclude pheromons with same distance

Bastien Sevajol преди 9 години
родител
ревизия
0a4e581198
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      intelligine/simulation/molecule/DirectionMolecule.py

+ 1 - 1
intelligine/simulation/molecule/DirectionMolecule.py Целия файл

@@ -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,