소스 검색

engulf fix: forbidd position always

Bastien Sevajol 8 년 전
부모
커밋
a3d10ece86
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      sandbox/engulf/behaviour.py

+ 1 - 1
sandbox/engulf/behaviour.py 파일 보기

@@ -63,7 +63,7 @@ class GrassSpotablePositionsMechanism(SimulationMechanism):
63 63
                 'around': [],
64 64
             }
65 65
             for around in arounds:
66
-                if around not in self.simulation.subjects.grass_xyz:
66
+                if around not in self.simulation.subjects.grass_xyz and self.simulation.is_possible_position(around):
67 67
                     around_data['around'].append(around)
68 68
 
69 69
             if around_data['around']: