mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-23 07:27:07 +00:00
darken_color correctly darkens hyperboloid instead of disabling it
This commit is contained in:
parent
f887ae23a6
commit
b44063f500
@ -1215,7 +1215,7 @@ int qp[PMAX], qp0[PMAX];
|
|||||||
|
|
||||||
void darken_color(color_t& color) {
|
void darken_color(color_t& color) {
|
||||||
int alpha = color & 255;
|
int alpha = color & 255;
|
||||||
if(vid.alpha <= 1) {
|
if(sphere && pmodel == mdDisk && vid.alpha <= 1) {
|
||||||
color = 0;
|
color = 0;
|
||||||
}
|
}
|
||||||
else if(alpha == 255)
|
else if(alpha == 255)
|
||||||
|
Loading…
Reference in New Issue
Block a user