summaryrefslogtreecommitdiff
path: root/plugins/changeitem.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2012-03-29 18:37:22 +0200
committerPetr Mrázek2012-03-29 18:37:22 +0200
commit004acdad4ea71c8393decda998bad508b9a14a9a (patch)
treee626aa999a19bf13056ba6991e0033f32c72ef32 /plugins/changeitem.cpp
parentcc54d5dfa9bd1430a0a4d38fef5370627880d3c8 (diff)
downloaddfhack-004acdad4ea71c8393decda998bad508b9a14a9a.tar.gz
dfhack-004acdad4ea71c8393decda998bad508b9a14a9a.tar.bz2
dfhack-004acdad4ea71c8393decda998bad508b9a14a9a.tar.xz
Tweaks!
Strip commands.clear() from all plugins Fix changeitem - a variable name has changed in item flags
Diffstat (limited to 'plugins/changeitem.cpp')
-rw-r--r--plugins/changeitem.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/changeitem.cpp b/plugins/changeitem.cpp
index b3fb2deb..6a300f3b 100644
--- a/plugins/changeitem.cpp
+++ b/plugins/changeitem.cpp
@@ -61,7 +61,6 @@ const string changeitem_help =
DFhackCExport command_result plugin_init ( color_ostream &out, vector <PluginCommand> &commands)
{
- commands.clear();
commands.push_back(PluginCommand(
"changeitem", "Change item attributes (material, quality).",
df_changeitem, false,
@@ -315,7 +314,7 @@ command_result changeitem_execute(
out.printerr("change denied: subtype doesn't match. use 'force' to override.\n");
}
- item->flags.bits.unk8 = 0; // recalc temperatures next time touched
+ item->flags.bits.temps_computed = 0; // recalc temperatures next time touched
item->flags.bits.weight_computed = 0; // recalc weight next time touched
}
return CR_OK;