fixed a warning on clang

This commit is contained in:
Zeno Rogue 2020-01-19 11:54:35 +01:00
parent 790275e3e5
commit 2878cc5730
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}