mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +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) {
|
||||
int c = part(x,2) + part(x,1) + part(x, 0) + 1;
|
||||
c /= 3;
|
||||
if(d == 0) c = c;
|
||||
else c = (c + 2 * 255) / 3;
|
||||
if(d != 0) c = (c + 2 * 255) / 3;
|
||||
return c * 0x10101;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user