another temp code for review

develop
NMLittle 2010-03-25 17:12:05 -05:00
parent 57689b18ab
commit 9acf33d80f
1 changed files with 4 additions and 2 deletions

@ -21,15 +21,17 @@ int main (void)
cerr << "DF not found" << endl;
return 1;
}
DF.InitMap();
if (DF.InitViewAndCursor())
{
if(DF.getCursorCoords(x,y,z))
{
cout << "cursor coords: " << x << "/" << y << "/" << z << endl;
if(DF.isValidBlock(x,y,z))
{
DF.ReadDesignations((x/16),(y/16),(z/16), &designations);
cout << x%16;
designations[x%16][y%16].bits.flow_size = 7;
designations[x%16][y%16].bits.liquid_type = DFHack::liquid_magma;
DF.WriteDesignations(x,y,z, &designations);
@ -39,7 +41,7 @@ int main (void)
cout << "Failure 1" << endl;
}
else
cout << "Failure 1" << endl;
cout << "Failure 2" << endl;
}
else
cout << "Process Failed" << endl;