From 1d5259c07443bbd7a9e11572000445b8e24bac8e Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 29 Jan 2018 16:28:06 +0100 Subject: [PATCH] use checktide always when sightrange>7 --- control.cpp | 1 + graph.cpp | 2 +- rug.cpp | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/control.cpp b/control.cpp index 83d76e65..944104af 100644 --- a/control.cpp +++ b/control.cpp @@ -813,6 +813,7 @@ void displayabutton(int px, int py, string s, int col) { #endif void gmodekeys(int sym, int uni) { + if(rug::rugged) rug::handlekeys(sym, uni); if(uni == '1' && !rug::rugged) { vid.alpha = 999; vid.scale = 998; vid.xposition = vid.yposition = 0; } if(uni == '2' && !rug::rugged) { vid.alpha = 1; vid.scale = 0.4; vid.xposition = vid.yposition = 0; } if(uni == '3' && !rug::rugged) { vid.alpha = 1; vid.scale = 1; vid.xposition = vid.yposition = 0; } diff --git a/graph.cpp b/graph.cpp index b824e5fb..9409fe1b 100644 --- a/graph.cpp +++ b/graph.cpp @@ -3415,7 +3415,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) { viewBuggyCells(c,V); - if(conformal::on || inHighQual) checkTide(c); + if(conformal::on || inHighQual || sightrange > 7) checkTide(c); // save the player's view center if(isPlayerOn(c) && !shmup::on) { diff --git a/rug.cpp b/rug.cpp index b220206a..6c18371e 100644 --- a/rug.cpp +++ b/rug.cpp @@ -94,6 +94,8 @@ struct rugpoint { } }; +rugpoint *chosen; + struct triangle { rugpoint *m[3]; triangle(rugpoint *m1, rugpoint *m2, rugpoint *m3) {