mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 07:30:26 +00:00
fixed a bug in goldberg rebasing
This commit is contained in:
parent
a993c11b76
commit
2e16660278
@ -289,6 +289,11 @@ void virtualRebase(cell*& base, T& at, bool tohex, const U& check) {
|
|||||||
newbase = c;
|
newbase = c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(newbase) {
|
||||||
|
base = newbase;
|
||||||
|
at = bestV * at;
|
||||||
|
}
|
||||||
|
else at = master_relative(base, true) * at;
|
||||||
if(tohex && GOLDBERG) {
|
if(tohex && GOLDBERG) {
|
||||||
while(true) {
|
while(true) {
|
||||||
newbase = NULL;
|
newbase = NULL;
|
||||||
@ -306,11 +311,6 @@ void virtualRebase(cell*& base, T& at, bool tohex, const U& check) {
|
|||||||
at = bestV * at;
|
at = bestV * at;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(newbase) {
|
|
||||||
base = newbase;
|
|
||||||
at = bestV * at;
|
|
||||||
}
|
|
||||||
else at = master_relative(base, true) * at;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user