1
0
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:
Zeno Rogue 2018-09-28 01:49:17 +02:00
parent a993c11b76
commit 2e16660278

View File

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