mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 09:00:34 +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;
|
||||
}
|
||||
}
|
||||
if(newbase) {
|
||||
base = newbase;
|
||||
at = bestV * at;
|
||||
}
|
||||
else at = master_relative(base, true) * at;
|
||||
if(tohex && GOLDBERG) {
|
||||
while(true) {
|
||||
newbase = NULL;
|
||||
@ -306,11 +311,6 @@ void virtualRebase(cell*& base, T& at, bool tohex, const U& check) {
|
||||
at = bestV * at;
|
||||
}
|
||||
}
|
||||
if(newbase) {
|
||||
base = newbase;
|
||||
at = bestV * at;
|
||||
}
|
||||
else at = master_relative(base, true) * at;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user