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:
parent
fe7b54d256
commit
ca315c2582
@ -1329,15 +1329,15 @@ EX int move_code(twalker cs) {
|
|||||||
auto cs2 = cs + wstep;
|
auto cs2 = cs + wstep;
|
||||||
be_solid(cs.at); ufind(cs); ufind(cs2); be_solid(cs2.at);
|
be_solid(cs.at); ufind(cs); ufind(cs2); be_solid(cs2.at);
|
||||||
fix_distances(cs.at);
|
fix_distances(cs.at);
|
||||||
int y = cs.at->dist - cs.peek()->dist;
|
|
||||||
|
|
||||||
int x;
|
|
||||||
|
|
||||||
if(WDIM == 3) {
|
if(WDIM == 3) {
|
||||||
if(cs2.at->parent_dir == cs2.spin) return C_PARENT;
|
if(cs2.at->parent_dir == cs2.spin) return C_PARENT;
|
||||||
else return get_roadsign(cs+wstep);
|
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;
|
if(!(flags & w_no_relative_distance)) x = C_EQUAL;
|
||||||
else if(y == 1) x = C_NEPHEW;
|
else if(y == 1) x = C_NEPHEW;
|
||||||
else if(y == 0) x = C_EQUAL;
|
else if(y == 0) x = C_EQUAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user