From ca315c2582835e8ff571b262e396fd4b757486d0 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 17 Aug 2022 17:32:15 +0200 Subject: [PATCH] rulegen3:: reordered move_code --- rulegen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rulegen.cpp b/rulegen.cpp index bd5e1e6b..3111c04f 100644 --- a/rulegen.cpp +++ b/rulegen.cpp @@ -1329,15 +1329,15 @@ EX int move_code(twalker cs) { auto cs2 = cs + wstep; be_solid(cs.at); ufind(cs); ufind(cs2); be_solid(cs2.at); fix_distances(cs.at); - int y = cs.at->dist - cs.peek()->dist; - - int x; if(WDIM == 3) { if(cs2.at->parent_dir == cs2.spin) return C_PARENT; else return get_roadsign(cs+wstep); } + int y = cs.at->dist - cs.peek()->dist; + int x; + if(!(flags & w_no_relative_distance)) x = C_EQUAL; else if(y == 1) x = C_NEPHEW; else if(y == 0) x = C_EQUAL;