From 6be7769e35a68e362fe383fbaf30608e40a2b06b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Mon, 19 Dec 2016 00:33:31 +0100 Subject: [PATCH] rename steps_* into stairs_* --- src/c3nav/routing/area.py | 4 ++-- src/c3nav/routing/level.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/c3nav/routing/area.py b/src/c3nav/routing/area.py index 045dd222..9e3f103e 100644 --- a/src/c3nav/routing/area.py +++ b/src/c3nav/routing/area.py @@ -83,8 +83,8 @@ class GraphArea(): continue if stair_direction_up is not None: - point1.connect_to(point2, ctype=('steps_up' if stair_direction_up else 'steps_down')) - point2.connect_to(point1, ctype=('steps_down' if stair_direction_up else 'steps_up')) + point1.connect_to(point2, ctype=('stairs_up' if stair_direction_up else 'stairs_down')) + point2.connect_to(point1, ctype=('stairs_down' if stair_direction_up else 'stairs_up')) elif escalator_direction_up is not None: if not escalator_swap_direction: point1.connect_to(point2, ctype=('escalator_up' if escalator_direction_up else 'escalator_down')) diff --git a/src/c3nav/routing/level.py b/src/c3nav/routing/level.py index da8ee80f..23abeee2 100644 --- a/src/c3nav/routing/level.py +++ b/src/c3nav/routing/level.py @@ -264,8 +264,8 @@ class GraphLevel(): # Drawing ctype_colors = { '': (50, 200, 0), - 'steps_up': (255, 50, 50), - 'steps_down': (255, 50, 50), + 'stairs_up': (255, 50, 50), + 'stairs_down': (255, 50, 50), 'escalator_up': (255, 150, 0), 'escalator_down': (200, 100, 0), 'elevator_up': (200, 0, 200),