summaryrefslogtreecommitdiff
path: root/plugins/deramp.cpp
diff options
context:
space:
mode:
authorQuietust2012-01-21 18:31:15 -0600
committerQuietust2012-01-21 18:31:15 -0600
commit2cc6bcf0e97dbdf60492067cd71dc79432a35687 (patch)
treee893504d15ef59e8803573f6f4483d2e3ec9ca34 /plugins/deramp.cpp
parentccf22bed10a78504701bbdb1f8177a16cf9ffdde (diff)
downloaddfhack-2cc6bcf0e97dbdf60492067cd71dc79432a35687.tar.gz
dfhack-2cc6bcf0e97dbdf60492067cd71dc79432a35687.tar.bz2
dfhack-2cc6bcf0e97dbdf60492067cd71dc79432a35687.tar.xz
Use CoreSuspender and namespace df::enums
Diffstat (limited to 'plugins/deramp.cpp')
-rw-r--r--plugins/deramp.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/deramp.cpp b/plugins/deramp.cpp
index bdeb0a07..23339756 100644
--- a/plugins/deramp.cpp
+++ b/plugins/deramp.cpp
@@ -12,10 +12,10 @@
using std::vector;
using std::string;
using namespace DFHack;
+using namespace DFHack::Simple;
+using namespace df::enums;
using df::global::world;
-using namespace DFHack;
-using namespace DFHack::Simple;
DFhackCExport command_result df_deramp (Core * c, vector <string> & parameters)
{
@@ -48,7 +48,7 @@ DFhackCExport command_result df_deramp (Core * c, vector <string> & parameters)
{
int16_t oldT = block->tiletype[x][y];
if ((tileShape(oldT) == RAMP) &&
- (block->designation[x][y].bits.dig == df::tile_dig_designation::Default))
+ (block->designation[x][y].bits.dig == tile_dig_designation::Default))
{
// Current tile is a ramp.
// Set current tile, as accurately as can be expected
@@ -59,7 +59,7 @@ DFhackCExport command_result df_deramp (Core * c, vector <string> & parameters)
continue;
// Set new tile type, clear designation
block->tiletype[x][y] = newT;
- block->designation[x][y].bits.dig = df::tile_dig_designation::No;
+ block->designation[x][y].bits.dig = tile_dig_designation::No;
// Check the tile above this one, in case a downward slope needs to be removed.
if ((above) && (tileShape(above->tiletype[x][y]) == RAMP_TOP))