# Cannot saw terrain stuff with hacksaw (patch)

**URL:** <https://discourse.cataclysmdda.org/t/cannot-saw-terrain-stuff-with-hacksaw-patch/2771>\
**Category:** The Garage\
**Created:** [August 20, 2013, 8:22pm UTC](https://discourse.cataclysmdda.org/t/cannot-saw-terrain-stuff-with-hacksaw-patch/2771 "2013-08-20T20:22:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathieu](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@mathieu](https://discourse.cataclysmdda.org/u/mathieu)\
**Post date:** [August 20, 2013, 8:22pm UTC](https://discourse.cataclysmdda.org/t/cannot-saw-terrain-stuff-with-hacksaw-patch/2771/1 "2013-08-20T20:22:08Z")

</div>

Looks like there’s a nesting error with the “if” chain in iuse::hacksaw().

```auto
diff --git a/iuse.cpp b/iuse.cpp
index 9d5e1f8..61b6ffa 100644
--- a/iuse.cpp
+++ b/iuse.cpp
@@ -3930,7 +3930,7 @@ if (dirx == p->posx && diry == p->posy) {
   g->sound(dirx, diry, 15,_("grnd grnd grnd"));
   g->m.spawn_item(dirx, diry, "pipe", 0, 6);
   g->m.spawn_item(dirx, diry, "wire", 0, 20);
- if (g->m.ter(dirx, diry) == t_chainfence_posts) {
+ } else if (g->m.ter(dirx, diry) == t_chainfence_posts) {
   p->moves -= 500;
   g->m.ter_set(dirx, diry, t_dirt);
   g->sound(dirx, diry, 15,_("grnd grnd grnd"));
@@ -3957,7 +3957,6 @@ if (dirx == p->posx && diry == p->posy) {
   g->add_msg(_("You can't cut that."));
  }
 }
-}
 
 void iuse::tent(game *g, player *p, item *it, bool t)
 {
```

---

<div class="post-metadata">

**Author:** ![1942rob](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/1942rob/32/979_2.png) [@1942rob](https://discourse.cataclysmdda.org/u/1942rob)\
**Post date:** [August 20, 2013, 9:16pm UTC](https://discourse.cataclysmdda.org/t/cannot-saw-terrain-stuff-with-hacksaw-patch/2771/2 "2013-08-20T21:16:18Z")

</div>

Made a PR on [GitHub](https://github.com/CleverRaven/Cataclysm-DDA/pull/2563) for ya.

Thanks for reporting / fixing.
