diff --git a/dfhack/modules/Maps.cpp b/dfhack/modules/Maps.cpp index b3fbb2810..7eb499d9a 100644 --- a/dfhack/modules/Maps.cpp +++ b/dfhack/modules/Maps.cpp @@ -72,6 +72,7 @@ Maps::Maps(APIPrivate* _d) off.z_count_offset = mem->getAddress ("z_count_block"); off.tile_type_offset = mem->getOffset ("type"); off.designation_offset = mem->getOffset ("designation"); + off.occupancy_offset = mem->getOffset("occupancy"); off.biome_stuffs = mem->getOffset ("biome_stuffs"); off.veinvector = mem->getOffset ("v_vein"); diff --git a/examples/veinlook.cpp b/examples/veinlook.cpp index 761d2359f..ca7c8e259 100644 --- a/examples/veinlook.cpp +++ b/examples/veinlook.cpp @@ -587,6 +587,17 @@ main(int argc, char *argv[]) } } */ + if(i == 0 && j == 0) + { + for(int x = 0; x < 16; x++) for(int y = 0; y < 16; y++) + { + if((Block->designation[x][y].whole & twiddle) == 1) + { + putch(x + 16,y + 16,'@',COLOR_WHITE); + } + } + } + } gotoxy(0,48); cprintf("arrow keys, PGUP, PGDN = navigate");