diff options
| author | Alexander Gavrilov | 2012-07-06 20:11:20 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-07-06 20:11:20 +0400 |
| commit | 4bbb185f7ba546fbab44e275fa243abb764e7571 (patch) | |
| tree | 6f8342ca5034c2931047df487e6010e40bea0659 /plugins/autodump.cpp | |
| parent | 07dc20055a599811b6ae517467d6a75392e47a60 (diff) | |
| download | dfhack-4bbb185f7ba546fbab44e275fa243abb764e7571.tar.gz dfhack-4bbb185f7ba546fbab44e275fa243abb764e7571.tar.bz2 dfhack-4bbb185f7ba546fbab44e275fa243abb764e7571.tar.xz | |
Fix build and allow autodump to any walkable tile (e.g. a stair).
Diffstat (limited to 'plugins/autodump.cpp')
| -rw-r--r-- | plugins/autodump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/autodump.cpp b/plugins/autodump.cpp index 536b2501..cfb73fa8 100644 --- a/plugins/autodump.cpp +++ b/plugins/autodump.cpp @@ -140,7 +140,7 @@ static command_result autodump_main(color_ostream &out, vector <string> & parame return CR_FAILURE; } df::tiletype ttype = MC.tiletypeAt(pos_cursor); - if(!DFHack::isFloorTerrain(ttype)) + if(!DFHack::isWalkable(ttype) || DFHack::isOpenTerrain(ttype)) { out.printerr("Cursor should be placed over a floor.\n"); return CR_FAILURE; |
