From 310c7c389af2ff63dc21a510bb307cb42f04abdd Mon Sep 17 00:00:00 2001 From: Kenny Young Date: Fri, 7 May 2021 10:48:11 -0600 Subject: [PATCH] Fixed a rare bug causing seaquest environment to crash if a bullet overlapped with 2 or more subs --- minatar/environments/seaquest.py | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/minatar/environments/seaquest.py b/minatar/environments/seaquest.py index b50a93d..e379af6 100644 --- a/minatar/environments/seaquest.py +++ b/minatar/environments/seaquest.py @@ -110,6 +110,7 @@ def act(self, a): self.e_subs.remove(x) self.f_bullets.remove(bullet) r+=1 + break # Update divers for diver in reversed(self.divers): diff --git a/setup.py b/setup.py index 62aeaf1..1e918fe 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='MinAtar', - version='1.0.6', + version='1.0.7', description='A miniaturized version of the arcade learning environment.', url='https://github.com/kenjyoung/MinAtar', author='Kenny Young',