rogueviz:: darken_a fixed

This commit is contained in:
Zeno Rogue 2023-02-04 09:21:16 +01:00
parent 3e615d3c53
commit 3811eebc8f
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ void storeline(vector<glvertex>& tab, const hyperpoint& h1, const hyperpoint& h2
color_t darken_a(color_t c) {
for(int p=0; p<3; p++)
for(int i=0; i<darken; i++) part(c, i+1) = (part(c, i+1) + part(backcolor, i)) >> 1;
for(int i=0; i<darken; i++) part(c, p+1) = (part(c, p+1) + part(backcolor, p)) >> 1;
return c;
}