diff options
| author | Petr Mrázek | 2012-03-03 14:38:24 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2012-03-03 14:38:24 +0100 |
| commit | 7fe8762852c11caeaeb486e9b76f024f5cbaf0d6 (patch) | |
| tree | 161c80a0738fa1d4d1b8fed845c59f29bd3abf9e /plugins/probe.cpp | |
| parent | 022822277d80152ca6ba4fad6102d68df35a7adc (diff) | |
| download | dfhack-7fe8762852c11caeaeb486e9b76f024f5cbaf0d6.tar.gz dfhack-7fe8762852c11caeaeb486e9b76f024f5cbaf0d6.tar.bz2 dfhack-7fe8762852c11caeaeb486e9b76f024f5cbaf0d6.tar.xz | |
Get rid of Simple namespace, Gui module is now a namespace.
Diffstat (limited to 'plugins/probe.cpp')
| -rw-r--r-- | plugins/probe.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/probe.cpp b/plugins/probe.cpp index 970a0735..271545bb 100644 --- a/plugins/probe.cpp +++ b/plugins/probe.cpp @@ -27,7 +27,6 @@ using namespace std; using std::vector; using std::string; using namespace DFHack; -using namespace DFHack::Simple; using namespace df::enums; using df::global::world; @@ -57,9 +56,8 @@ command_result df_cprobe (Core * c, vector <string> & parameters) { Console & con = c->con; CoreSuspender suspend(c); - DFHack::Gui *Gui = c->getGui(); int32_t cursorX, cursorY, cursorZ; - Gui->getCursorCoords(cursorX,cursorY,cursorZ); + Gui::getCursorCoords(cursorX,cursorY,cursorZ); if(cursorX == -30000) { con.printerr("No cursor; place cursor over creature to probe.\n"); @@ -94,7 +92,6 @@ command_result df_probe (Core * c, vector <string> & parameters) CoreSuspender suspend(c); - DFHack::Gui *Gui = c->getGui(); DFHack::Materials *Materials = c->getMaterials(); DFHack::VersionInfo* mem = c->vinfo; std::vector<t_matglossInorganic> inorganic; @@ -111,7 +108,7 @@ command_result df_probe (Core * c, vector <string> & parameters) Maps::getPosition(regionX,regionY,regionZ); int32_t cursorX, cursorY, cursorZ; - Gui->getCursorCoords(cursorX,cursorY,cursorZ); + Gui::getCursorCoords(cursorX,cursorY,cursorZ); if(cursorX == -30000) { con.printerr("No cursor; place cursor over tile to probe.\n"); |
