another temp code for review

develop
NMLittle 2010-03-25 17:31:43 -05:00
parent 9acf33d80f
commit 0b1c3ea469
1 changed files with 2 additions and 2 deletions

@ -28,13 +28,13 @@ int main (void)
if(DF.getCursorCoords(x,y,z)) if(DF.getCursorCoords(x,y,z))
{ {
cout << "cursor coords: " << x << "/" << y << "/" << z << endl; cout << "cursor coords: " << x << "/" << y << "/" << z << endl;
if(DF.isValidBlock(x,y,z)) if(DF.isValidBlock(x/16,y/16,z))
{ {
DF.ReadDesignations((x/16),(y/16),(z/16), &designations); DF.ReadDesignations((x/16),(y/16),(z/16), &designations);
designations[x%16][y%16].bits.flow_size = 7; designations[x%16][y%16].bits.flow_size = 7;
designations[x%16][y%16].bits.liquid_type = DFHack::liquid_magma; designations[x%16][y%16].bits.liquid_type = DFHack::liquid_magma;
DF.WriteDesignations(x,y,z, &designations); DF.WriteDesignations(x/16,y/16,z, &designations);
cout << "Success" << endl; cout << "Success" << endl;
} }
else else