mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-17 10:44:48 +00:00
fixed expansion_analyzer:: distribute_color
This commit is contained in:
parent
d36a31ce48
commit
e10f6564a6
@ -504,7 +504,7 @@ bool scrolling_distances = false;
|
|||||||
|
|
||||||
color_t distribute_color(int id) {
|
color_t distribute_color(int id) {
|
||||||
color_t v = 0xFFFFFF;
|
color_t v = 0xFFFFFF;
|
||||||
for(int z=0; z<24; z++) if(id & (1<<z)) part(v, (id%3)) &=~ 1<<(7-(z/3));
|
for(int z=0; z<24; z++) if(id & (1<<z)) part(v, (z%3)) &=~ (1<<(7-(z/3)));
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user