1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-31 19:36:16 +00:00

rulegen3:: reordered move_code

This commit is contained in:
Zeno Rogue 2022-08-17 17:32:15 +02:00
parent fe7b54d256
commit ca315c2582

View File

@ -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;