From e2531fb89110b26b797cf609b523f64373feab32 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 10 Feb 2018 18:20:12 +0100 Subject: [PATCH] compare pathdist with PINFD, not INF --- bigstuff.cpp | 2 +- landgen.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bigstuff.cpp b/bigstuff.cpp index af09e6b3..098186a6 100644 --- a/bigstuff.cpp +++ b/bigstuff.cpp @@ -1085,7 +1085,7 @@ void buildBigStuff(cell *c, cell *from) { createAlternateMap(c, 2, hsA); if(c->land == laPalace && ctof(c) && !princess::generating && !shmup::on && multi::players == 1 && - (princess::forceMouse ? (from && from->pathdist != INF) : + (princess::forceMouse ? (from && from->pathdist != PINFD) : (hrand(2000) < (peace::on ? 100 : 20))) && !c->master->alt && (princess::challenge || kills[moVizier] || peace::on) && !tactic::on && !yendor::on) { diff --git a/landgen.cpp b/landgen.cpp index ebf05734..5b501732 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -330,7 +330,7 @@ void giantLandSwitch(cell *c, int d, cell *from) { c->monst = moVizier; c->hitpoints = palaceHP(); } - else if(princess::forceVizier && from->pathdist != INF) { + else if(princess::forceVizier && from->pathdist != PINFD) { c->monst = moVizier; c->hitpoints = palaceHP(); princess::forceVizier = false;