]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - battlestar/command2.c
Fix merge conflicts
[bsdgames-darwin.git] / battlestar / command2.c
index 158e546a009b14f56d4a5b1a27be394b52077bb0..9d2c465ccf3d5e0e2e71ad81ab44089e7a13cdc2 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: command2.c,v 1.3 2005/07/01 06:04:54 jmc Exp $ */
+/*     $NetBSD: command2.c,v 1.5 2021/05/02 12:50:43 rillig Exp $      */
 
 /*
  * Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)com2.c     8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: command2.c,v 1.3 2005/07/01 06:04:54 jmc Exp $");
+__RCSID("$NetBSD: command2.c,v 1.5 2021/05/02 12:50:43 rillig Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -180,10 +180,10 @@ murder(void)
 {
        int     n;
 
-       for (n = 0; 
-           !((n == SWORD || n == KNIFE || n == TWO_HANDED || n == MACE || 
-               n == CLEAVER || n == BROAD || n == CHAIN || n == SHOVEL || 
-               n == HALBERD) && testbit(inven, n)) && n < NUMOFOBJECTS; 
+       for (n = 0;
+           !((n == SWORD || n == KNIFE || n == TWO_HANDED || n == MACE ||
+               n == CLEAVER || n == BROAD || n == CHAIN || n == SHOVEL ||
+               n == HALBERD) && testbit(inven, n)) && n < NUMOFOBJECTS;
            n++);
        if (n == NUMOFOBJECTS) {
                if (testbit(inven, LASER)) {
@@ -226,15 +226,15 @@ murder(void)
                                power += 5;
                                notes[JINXED]++;
                        } else
-                               if (testbit(location[position].objects, 
+                               if (testbit(location[position].objects,
                                    NORMGOD)) {
                                        printf("The goddess pleads but you ");
                                        printf("strike her mercilessly.  Her ");
                                        printf("broken body lies in a\n");
                                        puts("pool of blood.");
-                                       clearbit(location[position].objects, 
+                                       clearbit(location[position].objects,
                                            NORMGOD);
-                                       setbit(location[position].objects, 
+                                       setbit(location[position].objects,
                                            DEADGOD);
                                        power += 5;
                                        notes[JINXED]++;
@@ -271,6 +271,7 @@ murder(void)
                                puts("Your fantasy is over.");
                                die();
                        }
+                       /* FALLTHROUGH */
                case -1:
                        puts("Kill what?");
                        break;
@@ -291,9 +292,9 @@ ravage(void)
 {
        while (wordtype[++wordnumber] != NOUNS && wordnumber <= wordcount)
                continue;
-       if (wordtype[wordnumber] == NOUNS && 
+       if (wordtype[wordnumber] == NOUNS &&
            (testbit(location[position].objects, wordvalue[wordnumber])
-           || (wordvalue[wordnumber] == NORMGOD && 
+           || (wordvalue[wordnumber] == NORMGOD &&
                testbit(location[position].objects, BATHGOD)))) {
                ourtime++;
                switch (wordvalue[wordnumber]) {