mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-26 00:47:00 +00:00
fixed a warning on clang
This commit is contained in:
parent
790275e3e5
commit
2878cc5730
@ -578,8 +578,7 @@ void celldrawer::setcolors() {
|
|||||||
EX color_t w_monochromatize(color_t x, int d) {
|
EX color_t w_monochromatize(color_t x, int d) {
|
||||||
int c = part(x,2) + part(x,1) + part(x, 0) + 1;
|
int c = part(x,2) + part(x,1) + part(x, 0) + 1;
|
||||||
c /= 3;
|
c /= 3;
|
||||||
if(d == 0) c = c;
|
if(d != 0) c = (c + 2 * 255) / 3;
|
||||||
else c = (c + 2 * 255) / 3;
|
|
||||||
return c * 0x10101;
|
return c * 0x10101;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user