1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-22 06:57:03 +00:00

compatibility with old portal maps which indexed faces differently

This commit is contained in:
Zeno Rogue 2024-11-07 22:24:38 +01:00
parent 91ffde2bcc
commit 67b3a35f1f

View File

@ -1144,6 +1144,10 @@ EX namespace mapstream {
auto& cw = (k==1 ? p.cw1 : p.cw2);
cw.at = cellbyid[id];
cw.spin = fixspin(relspin[id], spin, cw.at->type, f.vernum);
/* compatibility with old portal maps which indexed faces differently */
if(mproduct && f.vernum <= 0xAA0F && cw.spin == cw.at->type - 1) {
p.spin += (k == 2 ? -1 : 1) * (bt::in() ? -1 : 1);
}
}
}
#endif