From 82a43b85d007adfe030afbb42c79c5db1c5d9f67 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sun, 14 Aug 2022 16:50:21 +0200 Subject: [PATCH] Fix: Dont reference screen when rendering screenles --- columbus/env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/columbus/env.py b/columbus/env.py index 2859d96..882ec0d 100644 --- a/columbus/env.py +++ b/columbus/env.py @@ -71,9 +71,9 @@ class ColumbusEnv(gym.Env): if self.visible: self.screen = pygame.display.set_mode( (self.width, self.height)) + pygame.display.set_caption(self.title) else: self.screen = pygame.Surface((self.width, self.height)) - pygame.display.set_caption(self.title) def _limit_to_unit_circle(self, coords): l_sq = coords[0]**2 + coords[1]**2