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/plants.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/plants.cpp')
| -rw-r--r-- | plugins/plants.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/plants.cpp b/plugins/plants.cpp index 8e5d51a7..951ac0a8 100644 --- a/plugins/plants.cpp +++ b/plugins/plants.cpp @@ -102,7 +102,6 @@ static command_result immolations (Core * c, do_what what, bool shrubs, bool tre c->con.printerr("Map is not available!\n"); return CR_FAILURE; } - Gui * Gui = c->getGui(); uint32_t x_max, y_max, z_max; Maps::getSize(x_max, y_max, z_max); MapExtras::MapCache map; @@ -125,7 +124,7 @@ static command_result immolations (Core * c, do_what what, bool shrubs, bool tre else { int32_t x,y,z; - if(Gui->getCursorCoords(x,y,z)) + if(Gui::getCursorCoords(x,y,z)) { vector<df::plant *> * alltrees; if(Maps::ReadVegetation(x/16,y/16,z,alltrees)) @@ -205,9 +204,8 @@ command_result df_grow (Core * c, vector <string> & parameters) return CR_FAILURE; } MapExtras::MapCache map; - Gui *Gui = c->getGui(); int32_t x,y,z; - if(Gui->getCursorCoords(x,y,z)) + if(Gui::getCursorCoords(x,y,z)) { vector<df::plant *> * alltrees; if(Maps::ReadVegetation(x/16,y/16,z,alltrees)) |
