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/filltraffic.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/filltraffic.cpp')
| -rw-r--r-- | plugins/filltraffic.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/filltraffic.cpp b/plugins/filltraffic.cpp index dc05ecbc..37d03686 100644 --- a/plugins/filltraffic.cpp +++ b/plugins/filltraffic.cpp @@ -40,7 +40,7 @@ DFhackCExport command_result plugin_init ( Core * c, std::vector <PluginCommand> { commands.push_back(PluginCommand( "filltraffic","Flood-fill with selected traffic designation from cursor", - filltraffic, cursor_hotkey, + filltraffic, Gui::cursor_hotkey, " Flood-fill selected traffic type from the cursor.\n" "Traffic Type Codes:\n" " H: High Traffic\n" @@ -115,7 +115,6 @@ command_result filltraffic(Core * c, std::vector<std::string> & params) } } - Gui * Gui = c->getGui(); if (!Maps::IsValid()) { c->con.printerr("Map is not available!\n"); @@ -126,7 +125,7 @@ command_result filltraffic(Core * c, std::vector<std::string> & params) Maps::getSize(x_max,y_max,z_max); uint32_t tx_max = x_max * 16; uint32_t ty_max = y_max * 16; - Gui->getCursorCoords(cx,cy,cz); + Gui::getCursorCoords(cx,cy,cz); while(cx == -30000) { c->con.printerr("Cursor is not active.\n"); @@ -276,7 +275,6 @@ command_result setAllMatching(Core * c, checkTile checkProc, //Initialization. CoreSuspender suspend(c); - Gui * Gui = c->getGui(); if (!Maps::IsValid()) { c->con.printerr("Map is not available!\n"); |
