From 6d6a9f8f252b16f9ef24a98c652fadf90c85762f Mon Sep 17 00:00:00 2001
From: "Egli Adrian (IT-SCI-API-PFI)" <adrian.egli@sbb.ch>
Date: Thu, 3 Oct 2019 10:28:43 +0200
Subject: [PATCH] rendering debug <schweif>

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

diff --git a/flatland/utils/graphics_pil.py b/flatland/utils/graphics_pil.py
index 0b4a19fd..3a29b648 100644
--- a/flatland/utils/graphics_pil.py
+++ b/flatland/utils/graphics_pil.py
@@ -660,17 +660,17 @@ class PILSVG(PILGL):
                 dr = 0.2
                 dc = 0.2
                 if in_direction == 0:
-                    dr = 0.4
+                    dr = 0.8
                     dc = 0.0
                 if in_direction == 1:
                     dr = 0.0
-                    dc = 0.4
+                    dc = 0.8
                 if in_direction == 2:
-                    dr = 0.2
-                    dc = 0.4
-                if in_direction == 3:
                     dr = 0.4
-                    dc = 0.2
+                    dc = 0.8
+                if in_direction == 3:
+                    dr = 0.8
+                    dc = 0.4
 
                 self.text_rowcol((row + dr, col + dc,), str(agent_idx), layer=PILGL.SELECTED_AGENT_LAYER)
             else:
-- 
GitLab