|
|
@ -55,6 +55,7 @@ int main (int argc, char** argv)
|
|
|
|
Mapz->getSize(x_max,y_max,z_max);
|
|
|
|
Mapz->getSize(x_max,y_max,z_max);
|
|
|
|
|
|
|
|
|
|
|
|
uint8_t zeroes [16][16] = {0};
|
|
|
|
uint8_t zeroes [16][16] = {0};
|
|
|
|
|
|
|
|
DFHack::occupancies40d occ;
|
|
|
|
|
|
|
|
|
|
|
|
// walk the map
|
|
|
|
// walk the map
|
|
|
|
for(uint32_t x = 0; x< x_max;x++)
|
|
|
|
for(uint32_t x = 0; x< x_max;x++)
|
|
|
@ -66,6 +67,13 @@ int main (int argc, char** argv)
|
|
|
|
if(Mapz->isValidBlock(x,y,z))
|
|
|
|
if(Mapz->isValidBlock(x,y,z))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Mapz->ReadVeins(x,y,z,0,0,&splatter);
|
|
|
|
Mapz->ReadVeins(x,y,z,0,0,&splatter);
|
|
|
|
|
|
|
|
Mapz->ReadOccupancy(x,y,z,&occ);
|
|
|
|
|
|
|
|
for(int i = 0; i < 16; i++)
|
|
|
|
|
|
|
|
for(int j = 0; j < 16; j++)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
occ[i][j].unibits.splatter = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Mapz->WriteOccupancy(x,y,z,&occ);
|
|
|
|
for(uint32_t i = 0; i < splatter.size(); i++)
|
|
|
|
for(uint32_t i = 0; i < splatter.size(); i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
DFHack::t_spattervein & vein = splatter[i];
|
|
|
|
DFHack::t_spattervein & vein = splatter[i];
|
|
|
|