- set_ch_on_yx(win, y, x * 2 + (y % 2), world.map.cells[z]);
+ attr_t attr_c = ' ' == world.mem_map[z] ? attr_sha : attr_mem;
+ chtype c = world.mem_map[z] | attr_c;
+ set_ch_on_yx(win, y, x * 2 + (y % 2), c);
+ if (x + (y % 2) < world.map.length)
+ {
+ set_ch_on_yx(win, y, x * 2 + (y % 2) + 1, ' ' | attr_c);
+ }
+ z++;
+ }
+ }
+ for (y = 0, z = 0; y < world.map.length; y++)
+ {
+ for (x = 0; x < world.map.length; x++)
+ {
+ if (' ' != world.map.cells[z])
+ {
+ chtype c = world.map.cells[z] | attr_fov;
+ set_ch_on_yx(win, y, x * 2 + (y % 2), c);
+ if (x + (y % 2) < world.map.length)
+ {
+ set_ch_on_yx(win, y, x * 2 + (y % 2) + 1, ' ' | attr_fov);
+ }
+ }