]> granicus.if.org Git - nethack/commitdiff
formatting: tab removal
authorPatR <rankin@nethack.org>
Sat, 21 May 2016 00:01:40 +0000 (17:01 -0700)
committerPatR <rankin@nethack.org>
Sat, 21 May 2016 00:01:40 +0000 (17:01 -0700)
14 files changed:
src/detect.c
src/eat.c
src/engrave.c
src/fountain.c
src/mcastu.c
src/mkmap.c
src/mkmaze.c
src/mkroom.c
src/objnam.c
src/options.c
src/pager.c
src/pline.c
src/rect.c
src/vault.c

index 1d89e58af8bbfbc0f322ac078cc4494f31c3c235..3726db68a5218879616eb3cd70b0e17e048d7b39 100644 (file)
@@ -1360,7 +1360,7 @@ boolean via_warning;
                 Your("warning senses cause you to take a second %s.",
                         Blind ? "to check nearby" : "look close by");
                 display_nhwindow(WIN_MESSAGE, FALSE); /* flush messages */
-           }
+            }
             mtmp->mundetected = 0;
             newsym(x, y);
             goto find;
index c66f4c91d2956fb8413e79586845d650108d60ed..5aaac8720291eecd3298aead95e1f247fc4bf421 100644 (file)
--- a/src/eat.c
+++ b/src/eat.c
@@ -2615,7 +2615,7 @@ struct obj *obj;
                               obj, doname, thesimpleoname, "that")) != 'y')
                 return 0;
         }
-       if (!wield_tool(obj, "use"))
+        if (!wield_tool(obj, "use"))
             return 0;
         res = 1;
     }
index 5347d4968146ee1ca380095abdd16a0e648ec361..7c09ae5308d42434193fbccdc3e6e1a4618d01b0 100644 (file)
@@ -414,7 +414,7 @@ int x, y;
 }
 
 /*
- *     freehand - returns true if player has a free hand
+ * freehand - returns true if player has a free hand
  */
 int
 freehand()
@@ -429,30 +429,30 @@ static NEARDATA const char styluses[] = { ALL_CLASSES, ALLOW_NONE,
                                           RING_CLASS,  0 };
 
 /* Mohs' Hardness Scale:
- *  1 - Talc            6 - Orthoclase
- *  2 - Gypsum          7 - Quartz
- *  3 - Calcite                 8 - Topaz
- *  4 - Fluorite        9 - Corundum
- *  5 - Apatite                10 - Diamond
+ *  1 - Talc             6 - Orthoclase
+ *  2 - Gypsum           7 - Quartz
+ *  3 - Calcite          8 - Topaz
+ *  4 - Fluorite         9 - Corundum
+ *  5 - Apatite         10 - Diamond
  *
  * Since granite is an igneous rock hardness ~ 7, anything >= 8 should
  * probably be able to scratch the rock.
  * Devaluation of less hard gems is not easily possible because obj struct
  * does not contain individual oc_cost currently. 7/91
  *
- * steel     - 5-8.5   (usu. weapon)
- * diamond    - 10                     * jade       -  5-6      (nephrite)
- * ruby       -  9     (corundum)      * turquoise  -  5-6
- * sapphire   -  9     (corundum)      * opal       -  5-6
- * topaz      -  8                     * glass      - ~5.5
- * emerald    -  7.5-8 (beryl)         * dilithium  -  4-5??
- * aquamarine -  7.5-8 (beryl)         * iron       -  4-5
- * garnet     -  7.25  (var. 6.5-8)    * fluorite   -  4
- * agate      -  7     (quartz)        * brass      -  3-4
- * amethyst   -  7     (quartz)        * gold       -  2.5-3
- * jasper     -  7     (quartz)        * silver     -  2.5-3
- * onyx       -  7     (quartz)        * copper     -  2.5-3
- * moonstone  -  6     (orthoclase)    * amber      -  2-2.5
+ * steel      - 5-8.5   (usu. weapon)
+ * diamond    - 10                      * jade       -  5-6      (nephrite)
+ * ruby       -  9      (corundum)      * turquoise  -  5-6
+ * sapphire   -  9      (corundum)      * opal       -  5-6
+ * topaz      -  8                      * glass      - ~5.5
+ * emerald    -  7.5-8  (beryl)         * dilithium  -  4-5??
+ * aquamarine -  7.5-8  (beryl)         * iron       -  4-5
+ * garnet     -  7.25   (var. 6.5-8)    * fluorite   -  4
+ * agate      -  7      (quartz)        * brass      -  3-4
+ * amethyst   -  7      (quartz)        * gold       -  2.5-3
+ * jasper     -  7      (quartz)        * silver     -  2.5-3
+ * onyx       -  7      (quartz)        * copper     -  2.5-3
+ * moonstone  -  6      (orthoclase)    * amber      -  2-2.5
  */
 
 /* return 1 if action took 1 (or more) moves, 0 if error or aborted */
index 9a083f55ea6704a251498dd22cea192674ccb41e..fb6dba69153fea3ed42e4818509d7f35f8bbf8a0 100644 (file)
@@ -1,5 +1,5 @@
 /* NetHack 3.6 fountain.c      $NHDT-Date: 1455402364 2016/02/13 22:26:04 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.56 $ */
-/*     Copyright Scott R. Turner, srt@ucla, 10/27/86 */
+/*      Copyright Scott R. Turner, srt@ucla, 10/27/86 */
 /* NetHack may be freely redistributed.  See license for details. */
 
 /* Code for drinking from fountains. */
@@ -481,7 +481,7 @@ register struct obj *obj;
     case 29: /* You see coins */
         /* We make fountains have more coins the closer you are to the
          * surface.  After all, there will have been more people going
-         * by. Just like a shopping mall!  Chris Woodbury  */
+         * by.  Just like a shopping mall!  Chris Woodbury  */
 
         if (FOUNTAIN_IS_LOOTED(u.ux, u.uy))
             break;
index 06c084916cddd5e5246f07c57ad02880fa6a11c9..addcc1575f03241a21e3c632a49f49e948f085f3 100644 (file)
@@ -268,8 +268,8 @@ boolean foundyou;
     }
 
     /*
-     * As these are spells, the damage is related to the level
-     * of the monster casting the spell.
+     * As these are spells, the damage is related to the level
+     * of the monster casting the spell.
      */
     if (!foundyou) {
         dmg = 0;
index 3ed4fd97fafe74eca280c7b2d627557b4ee70366..df2e37122a1a876b2a2f1db6280438655bd5110d 100644 (file)
@@ -247,8 +247,8 @@ boolean anyroom;
 }
 
 /*
- *     If we have drawn a map without walls, this allows us to
- *     auto-magically wallify it.  Taken from lev_main.c.
+ * If we have drawn a map without walls, this allows us to
+ * auto-magically wallify it.  Taken from lev_main.c.
  */
 STATIC_OVL void
 wallify_map()
index 03d4b07679eaedd4a194243fc53b16ca60ce335a..130d5c7dfda2ab42540a26dbc3442c8a4b93dc50 100644 (file)
@@ -162,7 +162,7 @@ int x1, y1, x2, y2;
     struct rm *lev;
     int FDECL((*loc_f), (int, int));
     int bits;
-    int locale[3][3];  /* rock or wall status surrounding positions */
+    int locale[3][3]; /* rock or wall status surrounding positions */
 
     /*
      * Value 0 represents a free-standing wall.  It could be anything,
index c7f6196e4a2fbfd4ffbb90c13a82113ac92d69a7..49b84f3e1e1e2fc6ae194c3ff28846d7a1dd56e5 100644 (file)
@@ -684,9 +684,9 @@ coord *c;
 
 /*
  * Search for a special room given its type (zoo, court, etc...)
- *     Special values :
- *             - ANY_SHOP
- *             - ANY_TYPE
+ *      Special values :
+ *              - ANY_SHOP
+ *              - ANY_TYPE
  */
 struct mkroom *
 search_special(type)
index 93fdcae83aec242fbf97ed5b9074536ae2c12b00..acf10c63e4e704b29ba1c1ad52ee1961ed6f74f2 100644 (file)
@@ -2472,7 +2472,7 @@ char oclass;
          i < NUM_OBJECTS && (!oclass || objects[i].oc_class == oclass);
          ++i) {
         /* don't match extra descriptions (w/o real name) */
-       if ((zn = OBJ_NAME(objects[i])) == 0)
+        if ((zn = OBJ_NAME(objects[i])) == 0)
             continue;
         if (wishymatch(name, zn, TRUE)
             || ((zn = OBJ_DESCR(objects[i])) != 0
index ba4e0f1b49e58271573e335d4102a8e8e86e1ced..3f701edec3a9dcfc24d6c75e2ab72952c7dbe546 100644 (file)
@@ -1016,7 +1016,7 @@ char *op;
 
     num = 0;
     if (!index(op, GOLD_SYM))
-       buf[num++] = COIN_CLASS;
+        buf[num++] = COIN_CLASS;
 
     for (sp = op; *sp; sp++) {
         oc_sym = def_char_to_objclass(*sp);
index 183b73f56d70d664b2e641fe8238c9a281932949..ba8dcd56e79946bcc00e98b359615a3b7ed4bed0 100644 (file)
@@ -612,7 +612,7 @@ boolean user_typed_name, without_asking;
                     }
                     if (yn(question) == 'y')
                         yes_to_moreinfo = TRUE;
-               }
+                }
 
                 if (user_typed_name || without_asking || yes_to_moreinfo) {
                     if (dlb_fseek(fp, (long) txt_offset + entry_offset,
index 0534ba33d7a7c83fdd6e75246964e530b90dd1e0..827b34793075dc70d03f55f9ae9d495cdcdfa59c 100644 (file)
@@ -436,7 +436,8 @@ register struct monst *mtmp;
         Strcat(info, ", asleep");
 #if 0 /* unfortunately mfrozen covers temporary sleep and being busy \
          (donning armor, for instance) as well as paralysis */
-       else if (mtmp->mfrozen)   Strcat(info, ", paralyzed");
+    else if (mtmp->mfrozen)
+        Strcat(info, ", paralyzed");
 #else
     else if (mtmp->mfrozen || !mtmp->mcanmove)
         Strcat(info, ", can't move");
index 5107bf18109f0bf7e63fae77a0050917ce60bf5e..e8f2b5a3b960e0cc9c78cd921067338497d879dc 100644 (file)
@@ -1,5 +1,5 @@
 /* NetHack 3.6 rect.c  $NHDT-Date: 1432512774 2015/05/25 00:12:54 $  $NHDT-Branch: master $:$NHDT-Revision: 1.11 $ */
-/* Copyright (c) 1990 by Jean-Christophe Collet         */
+/* Copyright (c) 1990 by Jean-Christophe Collet                   */
 /* NetHack may be freely redistributed.  See license for details. */
 
 #include "hack.h"
index 922e571b45161fe2594190f70a6b423cfb079da5..143f390dc0b1b77ed474b63e79df5b4c5caae415 100644 (file)
@@ -392,10 +392,11 @@ invault()
             || !strcmpi(buf, "Creosote")) {
             if (!mvitals[PM_CROESUS].died) {
                 if (Deaf) {
-                    if (!Blind) pline("%s waves goodbye.", noit_Monnam(guard));
+                    if (!Blind)
+                        pline("%s waves goodbye.", noit_Monnam(guard));
                 } else {
                     verbalize(
-                    "Oh, yes, of course.  Sorry to have disturbed you.");
+                         "Oh, yes, of course.  Sorry to have disturbed you.");
                 }
                 mongone(guard);
             } else {
@@ -403,10 +404,11 @@ invault()
                 if (Deaf) {
                    if (!Blind)
                         pline("%s mouths something and looks very angry!",
-                            noit_Monnam(guard));
-               } else {
-                   verbalize("Back from the dead, are you?  I'll remedy that!");
-               }
+                              noit_Monnam(guard));
+                } else {
+                   verbalize(
+                           "Back from the dead, are you?  I'll remedy that!");
+                }
                 /* don't want guard to waste next turn wielding a weapon */
                 if (!MON_WEP(guard)) {
                     guard->weapon_check = NEED_HTH_WEAPON;
@@ -424,7 +426,7 @@ invault()
         if (!umoney && !hidden_gold()) {
             if (Deaf)
                 pline("%s stomps%s.", noit_Monnam(guard),
-                        (Blind) ? "" : " and beckons");
+                      (Blind) ? "" : " and beckons");
             else
                 verbalize("Please follow me.");
         } else {
@@ -432,20 +434,21 @@ invault()
                 if (Deaf) {
                     if (!Blind)
                         pline("%s glares at you%s.", noit_Monnam(guard),
-                            invent ? "r stuff" : "");
+                              invent ? "r stuff" : "");
                 } else {
                    verbalize("You have hidden gold.");
-               }
+                }
             }
             if (Deaf) {
                 if (!Blind)
-                    pline("%s holds out %s palm and beckons with %s other hand.",
-                        noit_Monnam(guard), mhis(guard), mhis(guard));
-           } else {
+                    pline(
+                       "%s holds out %s palm and beckons with %s other hand.",
+                          noit_Monnam(guard), mhis(guard), mhis(guard));
+            } else {
                 verbalize(
                     "Most likely all your gold was stolen from this vault.");
                 verbalize("Please drop that gold and follow me.");
-           }
+            }
         }
         EGD(guard)->gdx = gx;
         EGD(guard)->gdy = gy;
@@ -695,16 +698,16 @@ register struct monst *grd;
                               noit_Monnam(grd), mhis(grd));
                 } else {
                     verbalize("Drop all your gold, scoundrel!");
-               }
+                }
                 return 0;
             } else {
                 if (Deaf) {
                     if (!Blind)
                         pline("%s rubs %s hands with enraged delight!",
-                                noit_Monnam(grd), mhis(grd));
+                              noit_Monnam(grd), mhis(grd));
                 } else {
                     verbalize("So be it, rogue!");
-               }
+                }
                 grd->mpeaceful = 0;
                 return -1;
             }