mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-17 10:44:48 +00:00
nil:: fixed virtualRebase in the other honeycomb
This commit is contained in:
parent
3886b81caa
commit
5e1b3a2512
@ -312,12 +312,15 @@ void virtualRebase(cell*& base, T& at, const U& check) {
|
||||
};
|
||||
|
||||
auto& nw = nilv::nilwidth;
|
||||
while(h[1] < -0.5 * nw) step(1);
|
||||
while(h[1] >= 0.5 * nw) step(4);
|
||||
|
||||
bool ss = S7 == 6;
|
||||
|
||||
while(h[1] < -0.5 * nw) step(ss ? 1 : 2);
|
||||
while(h[1] >= 0.5 * nw) step(ss ? 4 : 6);
|
||||
while(h[0] < -0.5 * nw) step(0);
|
||||
while(h[0] >= 0.5 * nw) step(3);
|
||||
while(h[2] < -0.5 * nw * nw) step(2);
|
||||
while(h[2] >= 0.5 * nw * nw) step(5);
|
||||
while(h[0] >= 0.5 * nw) step(ss ? 3 : 4);
|
||||
while(h[2] < -0.5 * nw * nw) step(ss ? 2 : 3);
|
||||
while(h[2] >= 0.5 * nw * nw) step(ss ? 5 : 7);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user