fixed the 'away' function to draw sidewalls correctly

This commit is contained in:
Zeno Rogue 2017-10-07 00:33:32 +02:00
parent 62de2588cf
commit 49d32753e3
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ transmatrix mirrorif(const transmatrix& V, bool b) {
// -1 if away, 0 if not away
int away(const transmatrix& V2) {
return intval(C0, V2 * xpush0(1)) > intval(C0, tC0(V2));
return (intval(C0, V2 * xpush0(.1)) > intval(C0, tC0(V2))) ? -1 : 0;
}
/* double zgrad(double f1, double f2, int nom, int den) {