return struct fields borrowed in 3.6

This will break existing 3.7 save/bones.
This commit is contained in:
nhmall
2019-11-27 20:18:45 -05:00
parent 7406826824
commit 566019e588
4 changed files with 11 additions and 4 deletions

View File

@@ -646,14 +646,14 @@ unsigned long mflags;
/* once in a blue moon, he won't be at the very bottom */
if (!rn2(40))
nlev--;
mtmp->mspare1 |= MIGR_LEFTOVERS;
mtmp->migflags |= MIGR_LEFTOVERS;
} else {
nlev = rn2((max_depth - cur_depth) + 1) + cur_depth;
if (nlev == cur_depth)
nlev++;
if (nlev > max_depth)
nlev = max_depth;
mtmp->mspare1 = (mtmp->mspare1 & ~MIGR_LEFTOVERS);
mtmp->migflags = (mtmp->migflags & ~MIGR_LEFTOVERS);
}
get_level(&dest, nlev);
migrate_to_level(mtmp, ledger_no(&dest), MIGR_RANDOM, (coord *) 0);