]> granicus.if.org Git - nethack/commitdiff
redundant comparison bit
authorcohrs <cohrs>
Mon, 15 Sep 2003 16:20:38 +0000 (16:20 +0000)
committercohrs <cohrs>
Mon, 15 Sep 2003 16:20:38 +0000 (16:20 +0000)
src/do.c

index 4b07de7cf929d36d012754ed5bee3f7aca2973ca..7902db7a9bfbe91ae8e962bba1b7d7dbcadf434e 100644 (file)
--- a/src/do.c
+++ b/src/do.c
@@ -192,7 +192,7 @@ const char *verb;
                }
                water_damage(obj, FALSE, FALSE);
        } else if (u.ux == x && u.uy == y &&
-               (!u.utrap || (u.utrap && u.utraptype != TT_PIT)) &&
+               (!u.utrap || u.utraptype != TT_PIT) &&
                (t = t_at(x,y)) != 0 && t->tseen &&
                        (t->ttyp==PIT || t->ttyp==SPIKED_PIT)) {
                /* you escaped a pit and are standing on the precipice */