Browse Source

engulf fix: forbidd position always

Bastien Sevajol 8 years ago
parent
commit
a3d10ece86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sandbox/engulf/behaviour.py

+ 1 - 1
sandbox/engulf/behaviour.py View File

63
                 'around': [],
63
                 'around': [],
64
             }
64
             }
65
             for around in arounds:
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
                     around_data['around'].append(around)
67
                     around_data['around'].append(around)
68
 
68
 
69
             if around_data['around']:
69
             if around_data['around']: