1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +00:00

hat:: Orb of Vaulting now works correctly

This commit is contained in:
Zeno Rogue 2023-03-28 12:47:03 +02:00
parent a0343f6108
commit 06d250e6a5

View File

@ -1265,7 +1265,7 @@ EX void apply_impact(cell *c) {
EX int check_vault(cell *cf, cell *ct, flagtype flags, cell*& jumpthru) { EX int check_vault(cell *cf, cell *ct, flagtype flags, cell*& jumpthru) {
cell *c2 = NULL, *c3 = NULL; cell *c2 = NULL, *c3 = NULL;
forCellCM(cc, cf) { forCellCM(cc, cf) {
if(isNeighbor(cc, ct)) c3 = c2, c2 = cc; if(isNeighbor(cc, ct) && c2 != cc) c3 = c2, c2 = cc;
} }
jumpthru = c2; jumpthru = c2;
if(!c2) return 0; if(!c2) return 0;