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

---
 flatland/utils/graphics_pil.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/flatland/utils/graphics_pil.py b/flatland/utils/graphics_pil.py
index 192d6f32..33e1b133 100644
--- a/flatland/utils/graphics_pil.py
+++ b/flatland/utils/graphics_pil.py
@@ -429,10 +429,15 @@ class PILSVG(PILGL):
                     if self.background_grid[col][row] < 4:
                         a = int(self.background_grid[col][row])
                         a = a % len(self.dBuildings)
-                        pilTrack = self.dBuildings[a]
+                        if (col + row) % 10 > 2:
+                            pilTrack = self.dScenery[0]
+                        else:
+                            pilTrack = self.dBuildings[a]
                     elif self.background_grid[col][row] > 5:
                         a = int(self.background_grid[col][row]) - 5
                         a = a % len(self.dScenery)
+                        if (col + row + col * row) % 10 > 2:
+                            a = 0
                         pilTrack = self.dScenery[a]
 
                 self.drawImageRC(pilTrack, (row, col))
-- 
GitLab