1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

fixed expansion_analyzer:: distribute_color

This commit is contained in:
Zeno Rogue 2018-09-28 03:21:22 +02:00
parent d36a31ce48
commit e10f6564a6

View File

@ -504,7 +504,7 @@ bool scrolling_distances = false;
color_t distribute_color(int id) {
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;
}