mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-02 15:03:00 +00:00
crystal:: fixed the coloring
This commit is contained in:
@@ -400,7 +400,7 @@ color_t colorize(cell *c) {
|
|||||||
color_t res;
|
color_t res;
|
||||||
res = 0;
|
res = 0;
|
||||||
for(int i=0; i<3; i++)
|
for(int i=0; i<3; i++)
|
||||||
res |= ((int)(((i == 2 && S7 == 5) ? (128 + co[i] * 50) : (128 + co[i] * 50)))) << (8*i);
|
res |= ((int)(((i == 2 && S7 == 5) ? (128 + co[i] * 50) : (255&int(128 + co[i] * 50))))) << (8*i);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user