]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - hack/hack.wizard.c
caesar: WARNS=6, strict bool mode
[bsdgames-darwin.git] / hack / hack.wizard.c
index f1b5b0313e7ef82a838f1f0efbe7518c5a236629..0cd00c7f0ad5240ea7cfe3cc928604cf9f725755 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: hack.wizard.c,v 1.8 2009/06/07 18:30:39 dholland Exp $ */
+/*     $NetBSD: hack.wizard.c,v 1.10 2011/08/07 06:03:45 dholland Exp $        */
 
 /*
  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: hack.wizard.c,v 1.8 2009/06/07 18:30:39 dholland Exp $");
+__RCSID("$NetBSD: hack.wizard.c,v 1.10 2011/08/07 06:03:45 dholland Exp $");
 #endif                         /* not lint */
 
 /* wizard code - inspired by rogue code from Merlyn Leroy (digi-g!brian) */
@@ -76,7 +76,11 @@ __RCSID("$NetBSD: hack.wizard.c,v 1.8 2009/06/07 18:30:39 dholland Exp $");
 #define        BOLT_LIM    8           /* from this distance D and 1 will try to hit
                                 * you */
 
-const char            wizapp[] = "@DNPTUVXcemntx";
+static const char wizapp[] = "@DNPTUVXcemntx";
+
+static void aggravate(void);
+static void clonewiz(struct monst *);
+
 
 /* If he has found the Amulet, make the wizard appear after some time */
 void
@@ -217,7 +221,7 @@ inrange(struct monst *mtmp)
                                        pline("\"Destroy the thief, my pets!\"");
                                        aggravate();    /* aggravate all the
                                                         * monsters */
-                                       /* fall into next case */
+                                       /* FALLTHROUGH */
                                case 2:
                                        if (flags.no_of_wizards == 1 && rnd(5) == 0)
                                                /*