Issue 29 as regards this extension

git-svn-id: https://eggbotcode.googlecode.com/svn/trunk@148 72233254-1b6c-9e9c-5072-401df62706fb
pull/47/head
newman.daniel1 2010-10-18 13:43:26 +00:00
rodzic 621fe1dcac
commit 349d91703b
1 zmienionych plików z 12 dodań i 2 usunięć

Wyświetl plik

@ -490,7 +490,12 @@ class Maze(inkex.Effect):
def draw_horizontal(self, y, wall, isborder):
dy = 0 if wall == Maze._NORTH else 1
# Cater to Python 2.4 and earlier
# dy = 0 if wall == Maze._NORTH else 1
if wall == Maze._NORTH:
dy = 0
else:
dy = 1
thickness = 4 if isborder else 1
tracing = False
@ -519,7 +524,12 @@ class Maze(inkex.Effect):
def draw_vertical(self, x, wall, isborder):
dx = 0 if wall == Maze._WEST else 1
# Cater to Python 2.4 and earlier
# dx = 0 if wall == Maze._WEST else 1
if wall == Maze._WEST:
dx = 0
else:
dx = 1
thickness = 4 if isborder else 1
# We alternate the direction in which we draw each vertical wall.