From bb006eceb0851f1d7c5ea0c5b4a7eba1b7bf8429 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Wed, 22 Jun 2022 13:09:01 +0200 Subject: [PATCH] Fixed wrong color for Void when env.void_barrier is set --- columbus/observables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/columbus/observables.py b/columbus/observables.py index 70790ed..a2d3b18 100644 --- a/columbus/observables.py +++ b/columbus/observables.py @@ -58,10 +58,10 @@ class CnnObservable(Observable): snap = self.env.surface.subsurface(rect) self.snap = pygame.Surface((self.in_width, self.in_height)) if self.env.void_barrier: - col = (223, 0, 0) + col = (255, 0, 0) else: col = (50, 50, 50) - pygame.draw.rect(self.snap, (50, 50, 50), + pygame.draw.rect(self.snap, col, pygame.Rect(0, 0, self.in_width, self.in_height)) self.snap.blit(snap, (cx - x, cy - y)) self.obs = self.scaler(