Skip to content
Snippets Groups Projects
Commit 8417e530 authored by Egli Adrian (IT-SCI-API-PFI)'s avatar Egli Adrian (IT-SCI-API-PFI)
Browse files

Rendering "nicified"

parent b9b6c26f
No related branches found
No related tags found
No related merge requests found
...@@ -429,10 +429,15 @@ class PILSVG(PILGL): ...@@ -429,10 +429,15 @@ class PILSVG(PILGL):
if self.background_grid[col][row] < 4: if self.background_grid[col][row] < 4:
a = int(self.background_grid[col][row]) a = int(self.background_grid[col][row])
a = a % len(self.dBuildings) 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: elif self.background_grid[col][row] > 5:
a = int(self.background_grid[col][row]) - 5 a = int(self.background_grid[col][row]) - 5
a = a % len(self.dScenery) a = a % len(self.dScenery)
if (col + row + col * row) % 10 > 2:
a = 0
pilTrack = self.dScenery[a] pilTrack = self.dScenery[a]
self.drawImageRC(pilTrack, (row, col)) self.drawImageRC(pilTrack, (row, col))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment