]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - sail/dr_2.c
Braces around a nested if, for clarity; suggested by diffing against OpenBSD.
[bsdgames-darwin.git] / sail / dr_2.c
index 3eb96ab26a23c2b5cb4f454205b4d3c2f1cd18e9..72c6ef7e68e4b6171b484b47b05754a91c61090d 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: dr_2.c,v 1.18 2001/02/05 01:10:08 christos Exp $       */
+/*     $NetBSD: dr_2.c,v 1.20 2009/03/02 06:43:53 dholland Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed by the University of
- *     California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
  *
@@ -38,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)dr_2.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: dr_2.c,v 1.18 2001/02/05 01:10:08 christos Exp $");
+__RCSID("$NetBSD: dr_2.c,v 1.20 2009/03/02 06:43:53 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -74,12 +70,12 @@ thinkofgrapples(void)
                                        continue;
                                if (range(sp, sq) != 1)
                                        continue;
-                               if (grappled2(sp, sq))
+                               if (grappled2(sp, sq)) {
                                        if (is_toughmelee(sp, sq, 0, 0))
                                                ungrap(sp, sq);
                                        else
                                                grap(sp, sq);
-                               else if (couldwin(sp, sq)) {
+                               else if (couldwin(sp, sq)) {
                                        grap(sp, sq);
                                        sp->file->loadwith = L_GRAPE;
                                }