From 5c1b7e0b9f10282481debfdac68e1d01870353c1 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:13 +0200
Subject: [PATCH] .

---
 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 c5af55fa..31fa07f0 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 + row + col * row) % 10 > 7):
+                    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