mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-08 15:10:10 +00:00
fixed the 'away' function to draw sidewalls correctly
This commit is contained in:
parent
62de2588cf
commit
49d32753e3
@ -262,7 +262,7 @@ transmatrix mirrorif(const transmatrix& V, bool b) {
|
|||||||
|
|
||||||
// -1 if away, 0 if not away
|
// -1 if away, 0 if not away
|
||||||
int away(const transmatrix& V2) {
|
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) {
|
/* double zgrad(double f1, double f2, int nom, int den) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user