diff --git a/agents.py b/agents.py index d29b0c382..c28a706d2 100644 --- a/agents.py +++ b/agents.py @@ -552,7 +552,7 @@ def add_thing(self, thing, location=None, exclude_duplicate_class_items=False): def is_inbounds(self, location): """Checks to make sure that the location is inbounds (within walls if we have walls)""" x, y = location - return not (x < self.x_start or x > self.x_end or y < self.y_start or y > self.y_end) + return not (x < self.x_start or x > self.x_end-1 or y < self.y_start or y > self.y_end-1) def random_location_inbounds(self, exclude=None): """Returns a random location that is inbounds (within walls if we have walls)"""
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: