implemented giving up of Hunting Dogs; also made the sight range grow during an ambush

This commit is contained in:
Zeno Rogue
2017-10-16 20:08:51 +02:00
parent fae6118161
commit 4cef0e2cfb
2 changed files with 62 additions and 3 deletions
+4 -3
View File
@@ -2995,7 +2995,7 @@ bool dodrawcell(cell *c) {
// in the Yendor Challenge, scrolling back is forbidden
if(c->cpdist > 7 && (yendor::on && !cheater)) return false;
// (incorrect comment) too far, no bugs nearby
if(playermoved && sightrange <= 7 && c->cpdist > sightrange) return false;
if(playermoved && sightrange <= 7 && c->cpdist > sightrange && c->cpdist > ambush_distance) return false;
}
return true;
@@ -4769,9 +4769,10 @@ void drawthemap() {
drawEuclidean();
else {
if(sphere && vid.alpha > 1) sphereflip[2][2] = -1;
int sr = max(sightrange, ambush_distance);
maxreclevel =
conformal::on ? sightrange + 2:
(!playermoved) ? sightrange+1 : sightrange + 4;
conformal::on ? sr + 2:
(!playermoved) ? sr+1 : sr + 4;
drawrec(viewctr,
maxreclevel,