From 9acf33d80f406160c44687526c551435621fb34d Mon Sep 17 00:00:00 2001 From: NMLittle Date: Thu, 25 Mar 2010 17:12:05 -0500 Subject: [PATCH] another temp code for review --- tools/magma_create.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/magma_create.cpp b/tools/magma_create.cpp index f05706276..4993fbc9c 100644 --- a/tools/magma_create.cpp +++ b/tools/magma_create.cpp @@ -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;