summaryrefslogtreecommitdiff
path: root/plugins/cleanowned.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2011-08-06 04:37:29 +0200
committerPetr Mrázek2011-08-06 04:37:29 +0200
commitcb93b5542ec20a8660800f98f1b090af3623e100 (patch)
tree58f268002b223493b5682f037deca7b11d878989 /plugins/cleanowned.cpp
parent24bdc538e961e3d353e3e865f4f1bd7f04738483 (diff)
downloaddfhack-cb93b5542ec20a8660800f98f1b090af3623e100.tar.gz
dfhack-cb93b5542ec20a8660800f98f1b090af3623e100.tar.bz2
dfhack-cb93b5542ec20a8660800f98f1b090af3623e100.tar.xz
Fix problem with running interactive commands from hotkeys.
Diffstat (limited to 'plugins/cleanowned.cpp')
-rw-r--r--plugins/cleanowned.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/plugins/cleanowned.cpp b/plugins/cleanowned.cpp
index a4e36791..eea6d3af 100644
--- a/plugins/cleanowned.cpp
+++ b/plugins/cleanowned.cpp
@@ -31,7 +31,7 @@ DFhackCExport const char * plugin_name ( void )
DFhackCExport command_result plugin_init ( Core * c, std::vector <PluginCommand> &commands)
{
commands.clear();
- commands.push_back(PluginCommand("vlub",
+ commands.push_back(PluginCommand("cleanowned",
"Confiscates and dumps garbage owned by dwarfs.",
df_cleanowned));
return CR_OK;
@@ -195,23 +195,8 @@ DFhackCExport command_result df_cleanowned (Core * c, vector <string> & paramete
c->con.print("(unsuccessfully) ");
if (dump)
itm.base->flags.dump = 1;
-
- // NO-OP really
- //Items->writeItem(itm);
}
c->con.print("\n");
-/*
- printf(
- "%5d: %08x %08x (%d,%d,%d) #%08x [%d] %s - %s %s\n",
- i, itm.origin, itm.base.flags.whole,
- itm.base.x, itm.base.y, itm.base.z,
- itm.base.vtable,
- itm.wear_level,
- Items->getItemClass(itm.matdesc.itemType).c_str(),
- Items->getItemDescription(itm, Materials).c_str(),
- info.c_str()
- );
- */
}
}
c->Resume();