mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-26 21:37:02 +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)
|
||||
d = hypot_auto(d, z);
|
||||
else
|
||||
d = -hypot_auto(d, z);
|
||||
else {
|
||||
d = -hypot_auto(-d, z);
|
||||
zf = -zf;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user