From 71f5735439669aee423a6fd5a7ec3f4f02a911f7 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Fri, 8 Apr 2022 13:01:55 +0800 Subject: [PATCH] rename --- src/maze/_impl/_mz_square_cells_impl.scad | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/maze/_impl/_mz_square_cells_impl.scad b/src/maze/_impl/_mz_square_cells_impl.scad index c3bc1691..ff0fb123 100644 --- a/src/maze/_impl/_mz_square_cells_impl.scad +++ b/src/maze/_impl/_mz_square_cells_impl.scad @@ -144,13 +144,13 @@ function go_maze(x, y, cells, rows, columns, x_wrapping = false, y_wrapping = fa let( r_dirs = rand_dirs(x + y * columns, seed), v_dirs = visitable_dirs(r_dirs, x, y, cells, rows, columns, x_wrapping, y_wrapping), - nx_cells0 = set_visited(x, y, cells), + nxcells0 = set_visited(x, y, cells), leng_v_dirs = len(v_dirs) ) // have visitable dirs? - leng_v_dirs == 0 ? nx_cells0 : // road closed + leng_v_dirs == 0 ? nxcells0 : // road closed // try four directions - let(nxcells1 = next_cells(x, y, v_dirs[0], nx_cells0, rows, columns, x_wrapping, y_wrapping, seed)) + let(nxcells1 = next_cells(x, y, v_dirs[0], nxcells0, rows, columns, x_wrapping, y_wrapping, seed)) leng_v_dirs == 1 ? nxcells1 : let(nxcells2 = next_cells(x, y, v_dirs[1], nxcells1, rows, columns, x_wrapping, y_wrapping, seed)) leng_v_dirs == 2 ? nxcells2 :