mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-30 17:02:51 +00:00
fixed a potential crash with Orb of the Frog / Orb of Phasing
This commit is contained in:
parent
f3e7c2ee70
commit
1a3f59c222
4
orbs.cpp
4
orbs.cpp
@ -1261,7 +1261,7 @@ EX movei blowoff_destination(cell *c, int& di) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX int check_jump(cell *cf, cell *ct, flagtype flags, jumpdata& jdata) {
|
EX int check_jump(cell *cf, cell *ct, flagtype flags, jumpdata& jdata) {
|
||||||
int partial = 1;
|
int partial = 1; jdata.uniq = false;
|
||||||
forCellCM(c2, cf) {
|
forCellCM(c2, cf) {
|
||||||
if(isNeighbor(c2, ct)) {
|
if(isNeighbor(c2, ct)) {
|
||||||
jdata.jumpthru = c2;
|
jdata.jumpthru = c2;
|
||||||
@ -1277,7 +1277,7 @@ EX int check_jump(cell *cf, cell *ct, flagtype flags, jumpdata& jdata) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX int check_phase(cell *cf, cell *ct, flagtype flags, jumpdata& jdata) {
|
EX int check_phase(cell *cf, cell *ct, flagtype flags, jumpdata& jdata) {
|
||||||
int partial = 1;
|
int partial = 1; jdata.uniq = false;
|
||||||
forCellCM(c2, cf) {
|
forCellCM(c2, cf) {
|
||||||
if(isNeighbor(c2, ct) && !nonAdjacent(cf, c2) && !nonAdjacent(c2, ct)) {
|
if(isNeighbor(c2, ct) && !nonAdjacent(cf, c2) && !nonAdjacent(c2, ct)) {
|
||||||
jdata.jumpthru = c2;
|
jdata.jumpthru = c2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user