mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-18 23:24:07 +00:00
fixed a rendering bug with band in 3D
This commit is contained in:
parent
eb6d186f00
commit
85ab111abb
@ -179,8 +179,10 @@ bool hypot_zlev(ld zlev, ld& d, ld& df, ld& zf) {
|
|||||||
|
|
||||||
if(d > 0)
|
if(d > 0)
|
||||||
d = hypot_auto(d, z);
|
d = hypot_auto(d, z);
|
||||||
else
|
else {
|
||||||
d = -hypot_auto(d, z);
|
d = -hypot_auto(-d, z);
|
||||||
|
zf = -zf;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user