From 8dc2407c3794d9bd456579fea971e9a3d40c7689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 8 May 2011 03:36:46 +0200 Subject: [PATCH] Add a whole bunch of item flag checks to autodump in order to prevent mayhem and destruction. --- tools/supported/autodump.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/supported/autodump.cpp b/tools/supported/autodump.cpp index 68aafac88..92fd83b45 100644 --- a/tools/supported/autodump.cpp +++ b/tools/supported/autodump.cpp @@ -125,7 +125,15 @@ int main (int argc, char * argv[]) // iterator is valid here, we use it later to decrement the pile counter if the item is moved // only dump the stuff marked for dumping and laying on the ground - if (!temp.base.flags.dump || !temp.base.flags.on_ground) + if ( !temp.base.flags.dump + || !temp.base.flags.on_ground + || temp.base.flags.construction + || temp.base.flags.hidden + || temp.base.flags.in_building + || temp.base.flags.in_chest + || temp.base.flags.in_inventory + || temp.base.flags.construction + ) continue; if(!destroy) // move to cursor