1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-22 23:17:04 +00:00

darken_color correctly darkens hyperboloid instead of disabling it

This commit is contained in:
Zeno Rogue 2018-10-23 20:12:38 +02:00
parent f887ae23a6
commit b44063f500

View File

@ -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)