summaryrefslogtreecommitdiff
path: root/plugins/plants.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2012-03-03 14:38:24 +0100
committerPetr Mrázek2012-03-03 14:38:24 +0100
commit7fe8762852c11caeaeb486e9b76f024f5cbaf0d6 (patch)
tree161c80a0738fa1d4d1b8fed845c59f29bd3abf9e /plugins/plants.cpp
parent022822277d80152ca6ba4fad6102d68df35a7adc (diff)
downloaddfhack-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.cpp6
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))