From 31f105cee00ec0956a8cd7d3ea5aeb6587ed8d86 Mon Sep 17 00:00:00 2001
From: "Egli Adrian (IT-SCI-API-PFI)" <adrian.egli@sbb.ch>
Date: Thu, 13 Jun 2019 12:13:19 +0200
Subject: [PATCH] Rendering "nicified"

---
 flatland/utils/graphics_pil.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flatland/utils/graphics_pil.py b/flatland/utils/graphics_pil.py
index 31fa07f..4019bb6 100644
--- a/flatland/utils/graphics_pil.py
+++ b/flatland/utils/graphics_pil.py
@@ -434,7 +434,7 @@ class PILSVG(PILGL):
                             pilTrack = self.dScenery[0]
                         else:
                             pilTrack = self.dBuildings[a]
-                    elif (self.background_grid[col][row] > 5) or ((col**3 + row**2 + col * row) % 10 == 0):
+                    elif (self.background_grid[col][row] > 5) or ((col ** 3 + row ** 2 + col * row) % 10 == 0):
                         a = int(self.background_grid[col][row]) - 5
                         a = a % len(self.dScenery)
                         if (col + row + col * row) % 10 > 2:
-- 
GitLab