1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-21 12:43:18 +00:00

crystal:: fixed the coloring

This commit is contained in:
Zeno Rogue 2018-12-01 23:53:17 +01:00
parent 50f37a6b63
commit 683b235d55

View File

@ -400,7 +400,7 @@ color_t colorize(cell *c) {
color_t res;
res = 0;
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;
}