]> granicus.if.org Git - nethack/commitdiff
Comment typofixes, pt 3
authorPasi Kallinen <paxed@alt.org>
Sat, 17 Oct 2015 10:47:25 +0000 (13:47 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 17 Oct 2015 10:47:25 +0000 (13:47 +0300)
19 files changed:
include/dungeon.h
include/flag.h
src/apply.c
src/artifact.c
src/attrib.c
src/do.c
src/dothrow.c
src/dungeon.c
src/eat.c
src/hack.c
src/invent.c
src/mhitm.c
src/mklev.c
src/mon.c
src/shk.c
src/trap.c
src/vision.c
src/wizard.c
src/zap.c

index df6a2c8da1ba1af20fed593f004d42cff4d18bfe..4daa20dec7b633a11f73434d20a8aa885640014b 100644 (file)
@@ -43,7 +43,7 @@ typedef struct stairway { /* basic stairway identifier */
 #define LR_UPTELE 5
 #define LR_DOWNTELE 6
 
-typedef struct dest_area { /* non-stairway level change indentifier */
+typedef struct dest_area { /* non-stairway level change identifier */
     xchar lx, ly;          /* "lower" left corner (near [0,0]) */
     xchar hx, hy;          /* "upper" right corner (near [COLNO,ROWNO]) */
     xchar nlx, nly;        /* outline of invalid area */
index d347f8d40775406be89e951a972d7c1f454bf387..b39a1f0642a2aa411e093b1b873a9a8f4552cf4f 100644 (file)
@@ -402,7 +402,7 @@ struct cmd {
     boolean num_pad;       /* same as iflags.num_pad except during updates */
     boolean pcHack_compat; /* for numpad:  affects 5, M-5, and M-0 */
     boolean phone_layout;  /* inverted keypad:  1,2,3 above, 7,8,9 below */
-    boolean swap_yz;       /* German keyboads; use z to move NW, y to zap */
+    boolean swap_yz;       /* German keyboards; use z to move NW, y to zap */
     char move_W, move_NW, move_N, move_NE, move_E, move_SE, move_S, move_SW;
     const char *dirchars;      /* current movement/direction characters */
     const char *alphadirchars; /* same as dirchars if !numpad */
index bf7f3ec66c37dad2ec735673f6431dd3d9108a09..a14ab81c8ab108de7a447c32a27575da9474c3b9 100644 (file)
@@ -1395,7 +1395,7 @@ dorub()
             /* bones preparation:  perform the lamp transformation
                before releasing the djinni in case the latter turns out
                to be fatal (a hostile djinni has no chance to attack yet,
-               but an indebtted one who grants a wish might bestow an
+               but an indebted one who grants a wish might bestow an
                artifact which blasts the hero with lethal results) */
             uwep->otyp = OIL_LAMP;
             uwep->spe = 0; /* for safety */
index fbe67a3ceb6f695ea3ec26f9351568db67ef07fd..7f90f150bf7dc8c6a6e997fc5cec9b43f277290d 100644 (file)
@@ -2016,7 +2016,7 @@ int dropflag; /* 0==don't drop, 1==drop all, 2==drop weapon */
     /*
      * TODO?  Force off gloves if either or both rings are going to
      * become unworn; force off cloak [suit] before suit [shirt].
-     * The torso handling is hyphothetical; the case for gloves is
+     * The torso handling is hypothetical; the case for gloves is
      * not, due to the possibility of unwearing silver rings.
      */
 
index 59d9155d2ae66a8b85e62ae2878df0bbe6661288..17c6b930c6cc7db30dd151f84f885ed5c73dffa7 100644 (file)
@@ -1016,7 +1016,7 @@ acurrstr()
 
 /* when wearing (or taking off) an unID'd item, this routine is used
    to distinguish between observable +0 result and no-visible-effect
-   due to an attribute not being able to exceed maximum or minimun */
+   due to an attribute not being able to exceed maximum or minimum */
 boolean
 extremeattr(attrindx) /* does attrindx's value match its max or min? */
 int attrindx;
index 3b4a89040f2926102961df32e0bc2d1d5fafb09a..f192c0a3175eaf4725e002b05212dd96ae4fde24 100644 (file)
--- a/src/do.c
+++ b/src/do.c
@@ -860,7 +860,7 @@ dodown()
         return 0;
     }
     /* Levitation might be blocked, but player can still use '>' to
-       turn off controlled levitaiton */
+       turn off controlled levitation */
     if (HLevitation || ELevitation) {
         if ((HLevitation & I_SPECIAL) || (ELevitation & W_ARTI)) {
             /* end controlled levitation */
index 91ffef4c0bd6c0da825bb4e332c788b137ab30b1..3f54c0f7538d1462cbc19b1850fe7cfd585d0c3a 100644 (file)
@@ -1397,7 +1397,7 @@ register struct obj *obj; /* thrownobj or kickedobj or uwep */
         disttmp = -4;
     tmp += disttmp;
 
-    /* gloves are a hinderance to proper use of bows */
+    /* gloves are a hindrance to proper use of bows */
     if (uarmg && uwep && objects[uwep->otyp].oc_skill == P_BOW) {
         switch (uarmg->otyp) {
         case GAUNTLETS_OF_POWER: /* metal */
index a1539a13eaf8ecca899f48435bace0ddb783edf4..5db4049cb96845ae253be0d56c2ffb49aecf188f 100644 (file)
@@ -2473,7 +2473,7 @@ int reason; /* how hero died; used when disclosing end-of-game level */
     winid win;
     int lastdun = -1;
 
-    /* lazy intialization */
+    /* lazy initialization */
     (void) recalc_mapseen();
 
     win = create_nhwindow(NHW_MENU);
index d7f0e747f6f5eab4d174b19a495b3b9187b102c8..b23b116271b7fff8bab884ae37d6f045cc316b51 100644 (file)
--- a/src/eat.c
+++ b/src/eat.c
@@ -1588,7 +1588,7 @@ register struct obj *otmp;
         }
 
         if (!mons[otmp->corpsenm].cnutrit) {
-            /* no nutrution: rots away, no message if you passed out */
+            /* no nutrition: rots away, no message if you passed out */
             if (!retcode)
                 pline_The("corpse rots away completely.");
             if (carried(otmp))
index 7c865562c2292c74ce398d548dbaed25ca4193eb..a94ed9183e0f996de5db632973721649b5b09414 100644 (file)
@@ -1434,7 +1434,7 @@ domove()
             boulder = sobj_at(BOULDER, x, y);
             /* if a statue is displayed at the target location,
                player is attempting to attack it [and boulder
-               handlng below is suitable for handling that] */
+               handling below is suitable for handling that] */
             if (glyph_is_statue(glyph)
                 || (Hallucination && glyph_is_monster(glyph)))
                 boulder = sobj_at(STATUE, x, y);
index e4a9cca6a648b0f0fe99da82c7493d24377f6a76..35285e6501a936717f8c3eeefc4f1b7a125b75f1 100644 (file)
@@ -1628,7 +1628,7 @@ nextclass:
                                      *     otmp2 = otmp->nobj;
                                      *     ...
                                      * }
-                                     * is inadeqate here.  Use each object's bypass bit to keep
+                                     * is inadequate here.  Use each object's bypass bit to keep
                                      * track of which list elements have already been processed.
                                      */
     bypass_objlist(*objchn, FALSE); /* clear chain's bypass bits */
@@ -2718,7 +2718,7 @@ boolean picked_some;
                 drift ? "" : onwhat);
         }
         if (dfeature && !drift && !strcmp(dfeature, surface(u.ux, u.uy)))
-            dfeature = 0; /* ice already identifed */
+            dfeature = 0; /* ice already identified */
         if (!can_reach_floor(TRUE)) {
             pline("But you can't reach it!");
             return (0);
index e24a9d37b684ec10311c820f9b4647a996c2bc76..129f58f41853a07c18c7613b21b28dcda00cb557 100644 (file)
@@ -640,7 +640,7 @@ register struct attack *mattk;
         (void) snuff_lit(obj);
 
     /*
-     *  All of this maniuplation is needed to keep the display correct.
+     *  All of this manipulation is needed to keep the display correct.
      *  There is a flush at the next pline().
      */
     ax = magr->mx;
index 5d33569b0212fc673df263048e22b538af1d6026..c3bca394905e78dd1ddb4b1d504549ffe6605a61 100644 (file)
@@ -839,7 +839,7 @@ skip0:
         /* put box/chest inside;
          *  40% chance for at least 1 box, regardless of number
          *  of rooms; about 5 - 7.5% for 2 boxes, least likely
-         *  when few rooms; chance for 3 or more is neglible.
+         *  when few rooms; chance for 3 or more is negligible.
          */
         if (!rn2(nroom * 5 / 2))
             (void) mksobj_at((rn2(3)) ? LARGE_BOX : CHEST, somex(croom),
index 3a75573a71a63fdc88b9c10b8b0b7ce99a2182a3..bf3995256e4c72a18c0c06290a3f931a456fb52f 100644 (file)
--- a/src/mon.c
+++ b/src/mon.c
@@ -3046,7 +3046,7 @@ struct permonst *mdat;
 }
 
 /* make a chameleon take on another shape, or a polymorph target
-   (possibly self-infliced) become a different monster;
+   (possibly self-inflicted) become a different monster;
    returns 1 if it actually changes form */
 int
 newcham(mtmp, mdat, polyspot, msg)
index 7d2a79f79a598a78bf21a1111badbd1f9bc9506c..94832bf38fc78551c79ece12c680ad7699398a23 100644 (file)
--- a/src/shk.c
+++ b/src/shk.c
@@ -4130,7 +4130,7 @@ boolean altusage; /* some items have an "alternate" use with different cost */
     if (otmp->otyp == MAGIC_LAMP) { /* 1 */
         /* normal use (ie, as light source) of a magic lamp never
            degrades its value, but not charging anything would make
-           identifcation too easy; charge an amount comparable to
+           identification too easy; charge an amount comparable to
            what is charged for an ordinary lamp (don't bother with
            angry shk surchage) */
         if (!altusage)
index a7572f603b94578a82812c2606b518440bf09964..36fc43a96ddad199f3d0b8746a9b367a7f22353d 100644 (file)
@@ -2856,7 +2856,7 @@ long hmask, emask; /* might cancel timeout */
                      * is based on air currents. This is
                      * consistent with that.
                      * The unexpected additional force of the
-                     * air currents once leviation
+                     * air currents once levitation
                      * ceases knocks you off your feet.
                      */
                     if (Hallucination)
index 4918b5c2f131012d66aa996a19e9352c66ea0592..10e01abec562b5908fa16641b12664a1b2eb1b1d 100644 (file)
@@ -811,7 +811,7 @@ int control;
              *   the glyph -- E.g. darken room spot, etc.
              * o If we now could see the location (yet the location is not
              *   lit), but previously we couldn't see the location, or vice
-             *   versa.  Update the spot because there there may be an infared
+             *   versa.  Update the spot because there there may be an infrared
              *   monster there.
              */
             else {
index 2076062ead7e733e12195fbc7b8c4f5d41218315..af53c81e07f0a1c910c5afbdff9a8d408b521976 100644 (file)
@@ -337,7 +337,7 @@ register struct monst *mtmp;
             }
     /* fall through :-) */
 
-    case STRAT_NONE: /* harrass */
+    case STRAT_NONE: /* harass */
         if (!rn2(!mtmp->mflee ? 5 : 33))
             mnexto(mtmp);
         return (0);
index 3c623071721984f54f90af8683676822f862ea5c..b9d7a4ab12ed87abb95ba94f13263ea9b4fda0d6 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -1375,11 +1375,11 @@ int id;
         otmp->corpsenm = NON_PM;
         otmp->spe = 0;
 
-        /* now change it into something layed by the hero */
+        /* now change it into something laid by the hero */
         while (tryct--) {
             mnum = can_be_hatched(random_monster());
             if (mnum != NON_PM && !dead_species(mnum, TRUE)) {
-                otmp->spe = 1;            /* layed by hero */
+                otmp->spe = 1;            /* laid by hero */
                 set_corpsenm(otmp, mnum); /* also sets hatch timer */
                 break;
             }
@@ -2388,7 +2388,7 @@ boolean ordinary;
         }
         /*
          * It is possible that we can now merge some inventory.
-         * Do a higly paranoid merge.  Restart from the beginning
+         * Do a highly paranoid merge.  Restart from the beginning
          * until no merges.
          */
         do {
@@ -2875,7 +2875,7 @@ int dmg; /* base amount to be adjusted by bonus or penalty */
 {
     int intell = ACURR(A_INT);
 
-    /* Punish low intellegence before low level else low intellegence
+    /* Punish low intelligence before low level else low intelligence
        gets punished only when high level */
     if (intell <= 9) {
         /* -3 penalty, but never reduce combined amount below 1