From 4f81833e5d753286cfd8f1e543ddace7cc418b92 Mon Sep 17 00:00:00 2001 From: u214892 <u214892@sbb.ch> Date: Fri, 5 Jul 2019 09:26:28 +0200 Subject: [PATCH] bugfix tk stuff --- flatland/utils/rendertools.py | 3 +-- tox.ini | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flatland/utils/rendertools.py b/flatland/utils/rendertools.py index 8036294b..2a0b1af8 100644 --- a/flatland/utils/rendertools.py +++ b/flatland/utils/rendertools.py @@ -676,8 +676,7 @@ class RenderTool(object): if self.agentRenderVariant == AgentRenderVariant.BOX_ONLY: self.gl.setCellOccupied(iAgent, *(agent.position)) - elif self.agentRenderVariant == AgentRenderVariant.ONE_STEP_BEHIND or \ - self.agentRenderVariant == AgentRenderVariant.ONE_STEP_BEHIND_AND_BOX: + elif self.agentRenderVariant == AgentRenderVariant.ONE_STEP_BEHIND or self.agentRenderVariant == AgentRenderVariant.ONE_STEP_BEHIND_AND_BOX: if agent.old_position is not None: position = agent.old_position direction = agent.direction diff --git a/tox.ini b/tox.ini index 6e422317..2047166a 100644 --- a/tox.ini +++ b/tox.ini @@ -130,6 +130,7 @@ setenv = PYTHONPATH = {toxinidir} passenv = DISPLAY + XAUTHORITY ; HTTP_PROXY+HTTPS_PROXY required behind corporate proxies HTTP_PROXY HTTPS_PROXY -- GitLab