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