]> granicus.if.org Git - nethack/commitdiff
gcc compilation warnings
authorcohrs <cohrs>
Sat, 13 Sep 2003 22:55:45 +0000 (22:55 +0000)
committercohrs <cohrs>
Sat, 13 Sep 2003 22:55:45 +0000 (22:55 +0000)
src/do.c

index dd9fb971c462323cb283daa10766ac467e7f1bd8..8dbe4c6bf1f01145923a0988af8f527288436fde 100644 (file)
--- a/src/do.c
+++ b/src/do.c
@@ -83,9 +83,6 @@ boolean pushing;
            if (!fills_up || !pushing) {        /* splashing occurs */
                if (!u.uinwater) {
                    if (pushing ? !Blind : cansee(rx,ry)) {
-                       boolean moat = (ltyp != WATER) &&
-                           !Is_medusa_level(&u.uz) && !Is_waterlevel(&u.uz);
-
                        There("is a large splash as %s %s the %s.",
                              the(xname(otmp)), fills_up? "fills":"falls into",
                              what);
@@ -195,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.utrap && u.utraptype != TT_PIT)) &&
                (t = t_at(x,y)) != 0 && t->tseen &&
                        (t->ttyp==PIT || t->ttyp==SPIKED_PIT)) {
                static const char * const the_your[2] = { "the", "your" };