]> granicus.if.org Git - nethack/commitdiff
Comment typofixes, pt 4
authorPasi Kallinen <paxed@alt.org>
Sat, 17 Oct 2015 15:47:31 +0000 (18:47 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 17 Oct 2015 15:47:31 +0000 (18:47 +0300)
45 files changed:
include/display.h
include/mactty.h
include/region.h
include/wceconf.h
include/winX.h
include/youprop.h
src/alloc.c
src/bones.c
src/cmd.c
src/display.c
src/do_wear.c
src/dog.c
src/dogmove.c
src/dothrow.c
src/drawing.c
src/dungeon.c
src/eat.c
src/files.c
src/invent.c
src/lock.c
src/mail.c
src/minion.c
src/mon.c
src/mondata.c
src/monmove.c
src/monst.c
src/objnam.c
src/options.c
src/pickup.c
src/polyself.c
src/pray.c
src/region.c
src/shk.c
src/sounds.c
src/spell.c
src/steal.c
src/steed.c
src/teleport.c
src/trap.c
src/uhitm.c
src/zap.c
sys/mac/mactty.c
sys/share/unixtty.c
sys/wince/mhdlg.c
win/win32/mhdlg.c

index c38e596bf596b4a95711b2bac7ef914146d20e0a..58c995b4cfe0718ae16bddfc0f6eb6d83d8a44d7 100644 (file)
 #define DISP_END (-6)     /* Clean up. */
 #define DISP_FREEMEM (-7) /* Free all memory during exit only. */
 
-/* Total number of cmap indices in the sheild_static[] array. */
+/* Total number of cmap indices in the shield_static[] array. */
 #define SHIELD_COUNT 21
 
 /*
index 05e218f3c58141c2c97b7b1deefb05d28ae2b456..ba717c932c9ac3caf376bf3cd5c520f1c6b04c46 100644 (file)
@@ -5,7 +5,7 @@
 /*
  * This header is the supported external interface for the "tty" window
  * package. This package sports care-free handling of "dumb" tty windows
- * (preferrably using monospaced fonts) - it does NOT remember the strings
+ * (preferably using monospaced fonts) - it does NOT remember the strings
  * sent to it; rather, it uses an offscreen bitmap.
  *
  * For best performance, make sure it is aligned on a 32-pixel boundary
index 4b82559230bc627f6607a573c39970e567aaf9ea..dd1534fc2a317e42eb4fec2d07eb5312ab14fec3 100644 (file)
@@ -40,10 +40,10 @@ typedef struct {
     const char *leave_msg;      /* Message when leaving */
     long ttl;                   /* Time to live. -1 is forever */
     short expire_f;            /* Function to call when region's ttl expire */
-    short can_enter_f;         /* Function to call to check wether the player
+    short can_enter_f;         /* Function to call to check whether the player
                                   can, or can not, enter the region */
     short enter_f;             /* Function to call when the player enters*/
-    short can_leave_f;         /* Function to call to check wether the player
+    short can_leave_f;         /* Function to call to check whether the player
                                   can, or can not, leave the region */
     short leave_f;             /* Function to call when the player leaves */
     short inside_f;            /* Function to call every turn if player's
index fb9f0f60db1b43b618e2ca42707a533480dd63ad..7ab03f672b3b81b78111042d1bf317299b6790a1 100644 (file)
@@ -11,7 +11,7 @@
 
 #include <windows.h>
 
-/* Detect the targe device */
+/* Detect the target device */
 #if defined(WIN32_PLATFORM_PSPC)
 #if _WIN32_WCE >= 300
 #define WIN_CE_POCKETPC
index a54a37a9e54f9eb522456689cdd2ca47aadcbb57..4b13f4f78c446f91affe607813472d883a8991da 100644 (file)
@@ -216,7 +216,7 @@ struct xwindow {
 #define NHW_NONE 0 /* Unallocated window type.  Must be        */
 /* different from any other NHW_* type. */
 
-#define NO_CLICK 0 /* No click occured on the map window. Must */
+#define NO_CLICK 0 /* No click occurred on the map window. Must */
 /* be different than CLICK_1 and CLICK_2.   */
 
 #define DEFAULT_MESSAGE_WIDTH 60 /* width in chars of the message window */
index f1c1d9d00852e561fe8c4dc1d60de0befcc0c3fb..79fa70a7846c1ff7e5be32feb49193e04a19e739 100644 (file)
  *    lacerations, bruises, crushed body parts, bleeding.
  *
  * The following were evaluated and determined _NOT_ to be
- * susceptable to Half_physical_damage protection:
+ * susceptible to Half_physical_damage protection:
  *   Being caught in a fireball                      [fire damage]
  *   Sitting in lava                                 [lava damage]
  *   Thrown potion (acid)                            [acid damage]
index 328dc7ed72933d37f7892f05fa3d0fd38691f006..30c8e62a1f20348ba4a704a34277313454475b76 100644 (file)
@@ -62,7 +62,7 @@ long *alloc(lth) register unsigned int lth;
 
 /* A small pool of static formatting buffers.
  * PTRBUFSIZ:  We assume that pointers will be formatted as integers in
- * hexadecimal, requring at least 16+1 characters for each buffer to handle
+ * hexadecimal, requiring at least 16+1 characters for each buffer to handle
  * 64-bit systems, but the standard doesn't mandate that encoding and an
  * implementation could do something different for %p, so we make some
  * extra room.
index 2cadc108e460dc82ab29d991a6606b733a9e8b4e..8312ee04ab69108752df6b9377128fe34a59caf3 100644 (file)
@@ -102,7 +102,7 @@ boolean restore;
 
             /* strip user-supplied names */
             /* Statue and some corpse names are left intact,
-               presumeably in case they came from score file.
+               presumably in case they came from score file.
                [TODO: this ought to be done differently--names
                which came from such a source or came from any
                stoned or killed monster should be flagged in
@@ -193,7 +193,7 @@ char *namebuf;
     while (*namebuf) {
         c = *namebuf & 0177;
         if (c < ' ' || c == '\177') {
-            /* non-printable or undesireable */
+            /* non-printable or undesirable */
             *namebuf = '.';
         } else if (c != *namebuf) {
             /* expected to be printable if user wants such things */
index 066e4baf7642f418c5aaf1deb33ed324cb13d5ec..ed32af7ddc653a8189d0e8b8673e36b8f2e6e7af 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -4132,7 +4132,7 @@ const char *prompt;
            query, we might be even more paranoid about all paranoia
            responses (ie, ParanoidConfirm is set) in which case we
            require "no" to reject in addition to "yes" to confirm
-           (except we won't loop if respose is ESC; it means no) */
+           (except we won't loop if response is ESC; it means no) */
         do {
             Sprintf(qbuf, "%s%s %s", promptprefix, prompt, responsetype);
             getlin(qbuf, ans);
index 8a7fcdad2eef7129d2c446ee51e385381b418c65..000900efe95bf8a4c5fc208d113cd5b8512ee6ac 100644 (file)
@@ -424,7 +424,7 @@ register xchar worm_tail; /* mon is actually a worm tail */
         }
     }
 
-    /* If the mimic is unsucessfully mimicing something, display the monster
+    /* If the mimic is unsuccessfully mimicing something, display the monster
      */
     if (!mon_mimic || sensed) {
         int num;
@@ -552,7 +552,7 @@ xchar x, y;
             /*
              * An open room or water location.  Normally we wouldn't touch
              * this, but we have to get rid of remembered boulder symbols.
-             * This will only occur in rare occations when the hero goes
+             * This will only occur in rare occasions when the hero goes
              * blind and doesn't find a boulder where expected (something
              * came along and picked it up).  We know that there is not a
              * boulder at this location.  Show fountains, pools, etc.
@@ -1292,7 +1292,7 @@ docrt()
  */
 
 typedef struct {
-    xchar new; /* perhaps move this bit into the rm strucure. */
+    xchar new; /* perhaps move this bit into the rm structure. */
     int glyph;
 } gbuf_entry;
 
@@ -1793,7 +1793,7 @@ int x, y, a, b, c, dd;
 #endif /* WA_VERBOSE */
 
 /*
- * Return 'which' if position is implies an unfinshed exterior.  Return
+ * Return 'which' if position is implies an unfinished exterior.  Return
  * zero otherwise.  Unfinished implies outer area is rock or a corridor.
  *
  * Things that are ambiguous: lava
index a159ca6f92a5a94e65c8f89db69024bb85640502..8f1e67e543666dfce695ba08f684642b2d586f7a 100644 (file)
@@ -2141,7 +2141,7 @@ register struct obj *otmp;
 
     if (!otmp)
         return 0;
-    *buf = '\0'; /* lint suppresion */
+    *buf = '\0'; /* lint suppression */
 
     /* special ring checks */
     if (otmp == uright || otmp == uleft) {
index a6f08c02ce8c4101439973221c61c83e944c8b76..23e4bf78003c56f5fe4da2b660a1b1528467fd57 100644 (file)
--- a/src/dog.c
+++ b/src/dog.c
@@ -233,7 +233,7 @@ losedogs()
      * Last, place migrating monsters coming to this level.
      *
      * Hero might eventually be displaced (due to the third step, but
-     * occuring later), which is the main reason to do the second step
+     * occurring later), which is the main reason to do the second step
      * sooner (in turn necessitating the first step, rather than combining
      * the list scans with monster placement).
      */
@@ -793,7 +793,7 @@ register struct obj *obj;
                 || (acidic(fptr) && !resists_acid(mon))
                 || (poisonous(fptr) && !resists_poison(mon)))
                 return POISON;
-            /* turning into slime is preferrable to starvation */
+            /* turning into slime is preferable to starvation */
             else if (fptr == &mons[PM_GREEN_SLIME] && !slimeproof(mon->data))
                 return (starving ? ACCFOOD : POISON);
             else if (vegan(fptr))
@@ -987,7 +987,7 @@ boolean was_dead;
             }
         }
     } else {
-        /* chance it goes wild anyway - Pet Semetary */
+        /* chance it goes wild anyway - Pet Sematary */
         mtmp->mtame = rn2(mtmp->mtame + 1);
         if (!mtmp->mtame)
             mtmp->mpeaceful = rn2(2);
index 082ef6ac7e29c981cd168ab7dc39a4b95fe3334f..413a2188363fc47d5fa6035464c0db17b0f8d6d6 100644 (file)
@@ -521,7 +521,7 @@ int after, udist, whappr;
                 if (cursed_object_at(nx, ny)
                     && !(edog->mhpmax_penalty && otyp < MANFOOD))
                     continue;
-                /* skip completely unreacheable goals */
+                /* skip completely unreachable goals */
                 if (!could_reach_item(mtmp, nx, ny)
                     || !can_reach_location(mtmp, mtmp->mx, mtmp->my, nx, ny))
                     continue;
index 3f54c0f7538d1462cbc19b1850fe7cfd585d0c3a..9f065c5beb84c5948a101add0b41413bf10a4ca6 100644 (file)
@@ -1701,7 +1701,7 @@ nopick:
  *                   object is going to break.
  *     breakmsg()  - which outputs a message about the breakage,
  *                   appropriate for that particular object. Should
- *                   only be called after a positve breaktest().
+ *                   only be called after a positive breaktest().
  *                   on the object and, if it going to be called,
  *                   it must be called before calling breakobj().
  *                   Calling breakmsg() is optional.
index 1a5be65be7d6bc23fcb36adc66542ab6762220e2..66619514b9669d9351286f1345a09fa6c19ddbb3 100644 (file)
@@ -5,7 +5,7 @@
 #include "hack.h"
 #include "tcap.h"
 
-/* Relevent header information in rm.h, objclass.h, and monsym.h. */
+/* Relevant header information in rm.h, objclass.h, and monsym.h. */
 
 #ifdef C
 #undef C
index 5db4049cb96845ae253be0d56c2ffb49aecf188f..02ca81a9b89f33dda7a683b62970c1a556ab4893 100644 (file)
@@ -625,7 +625,7 @@ int d;
 /*
  * Place a level.  First, find the possible places on a dungeon map
  * template.  Next pick one.  Then try to place the next level.  If
- * sucessful, we're done.  Otherwise, try another (and another) until
+ * successful, we're done.  Otherwise, try another (and another) until
  * all possible places have been tried.  If all possible places have
  * been exhausted, return false.
  */
@@ -1548,7 +1548,7 @@ level_difficulty()
     } else {
         res = depth(&u.uz);
         /* depth() is the number of elevation units (levels) below
-           the theorhetical surface; in a builds-up branch, that value
+           the theoretical surface; in a builds-up branch, that value
            ends up making the harder to reach levels be treated as if
            they were easier; adjust for the extra effort involved in
            going down to the entrance and then up to the location */
@@ -2016,7 +2016,7 @@ int ledger_num;
         mptr->flags.forgot = 1;
         mptr->br = (branch *) 0;
 
-        /* custom names are erased, not just forgotten until revisted */
+        /* custom names are erased, not just forgotten until revisited */
         if (mptr->custom) {
             mptr->custom_lth = 0;
             free((genericptr_t) mptr->custom);
@@ -2380,7 +2380,7 @@ recalc_mapseen()
                     mptr->feat.naltar = count;
                 break;
             /* An automatic annotation is added to the Castle and
-             * to Fort Ludios once their struncture's main entrance
+             * to Fort Ludios once their structure's main entrance
              * has been seen (in person or via magic mapping).
              * DOOR: possibly a lowered drawbridge's open portcullis;
              * DBWALL: a raised drawbridge's "closed door";
index b23b116271b7fff8bab884ae37d6f045cc316b51..4367e652803bc4f27105160b677c2c00bc9b79a9 100644 (file)
--- a/src/eat.c
+++ b/src/eat.c
@@ -1464,7 +1464,7 @@ register struct obj *otmp;
 int
 Hear_again(VOID_ARGS)
 {
-    /* Chance of deafness going away while fainted/sleepeing/etc. */
+    /* Chance of deafness going away while fainted/sleeping/etc. */
     if (!rn2(2))
         make_deaf(0L, FALSE);
     return 0;
index 06d5f6e034dfb96c45a125ca813ac596c577cf3e..7f8d56c12e592efec214a3198e0a13297d30bde5 100644 (file)
@@ -3323,7 +3323,7 @@ assure_syscf_file()
 
 #ifdef DEBUG
 /* used by debugpline() to decide whether to issue a message
- * from a partiular source file; caller passes __FILE__ and we check
+ * from a particular source file; caller passes __FILE__ and we check
  * whether it is in the source file list supplied by SYSCF's DEBUGFILES
  *
  * pass FALSE to override wildcard matching; useful for files
index 35285e6501a936717f8c3eeefc4f1b7a125b75f1..02e747e296436191f000751e907806892e44773c 100644 (file)
@@ -1991,7 +1991,7 @@ long *out_cnt;
     menu_item *selected;
     struct obj **oarray;
 
-    /* overriden by global flag */
+    /* overridden by global flag */
     if (flags.perm_invent) {
         win = (lets && *lets) ? local_win : WIN_INVEN;
         /* create the first time used */
@@ -2653,7 +2653,7 @@ char *buf;
    don't show them unless obj_cnt is 0 */
 int
 look_here(obj_cnt, picked_some)
-int obj_cnt; /* obj_cnt > 0 implies that autopickup is in progess */
+int obj_cnt; /* obj_cnt > 0 implies that autopickup is in progress */
 boolean picked_some;
 {
     struct obj *otmp;
index ea6b94e2222e599b78241cbf6f000fb4cc9ea5e1..2bba9c8cec6832aaa892e476e7c18f35e5878a53 100644 (file)
@@ -745,7 +745,7 @@ int doclose() /* try to close a door */
     }
 
     if (portcullis || !IS_DOOR(door->typ)) {
-        /* is_db_wall: closed porcullis */
+        /* is_db_wall: closed portcullis */
         if (is_db_wall(x, y) || door->typ == DRAWBRIDGE_UP)
             pline_The("drawbridge is already closed.");
         else if (portcullis || door->typ == DRAWBRIDGE_DOWN)
index f4c8bd8c623d9793f103ad8ecf46a5b1bb575e39..0a38f148b7ed308529f7ac37bb9bcbcecdb4ce34 100644 (file)
@@ -134,7 +134,7 @@ coord *startp;
      */
     if (Blind && !Blind_telepat) {
         if (!enexto(startp, u.ux, u.uy, (struct permonst *) 0))
-            return FALSE; /* no good posiitons */
+            return FALSE; /* no good positions */
         return TRUE;
     }
 
@@ -221,7 +221,7 @@ retry:
 STATIC_OVL boolean
 md_stop(stopp, startp)
 coord *stopp;  /* stopping position (we fill it in) */
-coord *startp; /* starting positon (read only) */
+coord *startp; /* starting position (read only) */
 {
     int x, y, distance, min_distance = -1;
 
index 33a413991836b0c14c89325f69d2bb525694ec71..7fdb84e498406a25550785b3ceddf1a23454eaaa 100644 (file)
@@ -257,7 +257,7 @@ register struct monst *mtmp;
         return 0;
     } else {
         /* make sure that the demand is unmeetable if the monster
-           has the Amulet, preventing monster from being satisified
+           has the Amulet, preventing monster from being satisfied
            and removed from the game (along with said Amulet...) */
         if (mon_has_amulet(mtmp))
             demand = cash + (long) rn1(1000, 40);
index bf3995256e4c72a18c0c06290a3f931a456fb52f..786471e3485592657a2336cfd4d7053f568ff021 100644 (file)
--- a/src/mon.c
+++ b/src/mon.c
@@ -840,7 +840,7 @@ struct monst *mtmp;
     for (otmp = level.objects[mtmp->mx][mtmp->my]; otmp; otmp = otmp2) {
         otmp2 = otmp->nexthere;
 
-        /* touch senstive items */
+        /* touch sensitive items */
         if (otmp->otyp == CORPSE && is_rider(&mons[otmp->corpsenm])) {
             /* Rider corpse isn't just inedible; can't engulf it either */
             (void) revive_corpse(otmp);
@@ -3129,7 +3129,7 @@ boolean msg;      /* "The oldmon turns into a newmon!" */
 #ifndef LINT
     mtmp->mhp = (int) (((long) hpn * (long) mtmp->mhp) / (long) hpd);
 #endif
-    /* sanity check (potentional overflow) */
+    /* sanity check (potential overflow) */
     if (mtmp->mhp < 0 || mtmp->mhp > mtmp->mhpmax)
         mtmp->mhp = mtmp->mhpmax;
     /* unlikely but not impossible; a 1HD creature with 1HP that changes
index 7cc7d7d13bf50c09244d926cad501be55d0ebcbe..cfd55708841035add67b9c59d96234fef776923e 100644 (file)
@@ -38,7 +38,7 @@ int atyp, dtyp;
     return (struct attack *) 0;
 }
 
-/* does monster-type have a paricular type of attack */
+/* does monster-type have a particular type of attack */
 boolean
 attacktype(ptr, atyp)
 struct permonst *ptr;
@@ -405,7 +405,7 @@ boolean
 cantvomit(ptr)
 struct permonst *ptr;
 {
-    /* rats and mice are incapable of vomitting;
+    /* rats and mice are incapable of vomiting;
        which other creatures have the same limitation? */
     if (ptr->mlet == S_RODENT && ptr != &mons[PM_ROCK_MOLE]
         && ptr != &mons[PM_WOODCHUCK])
index 2caef728b6197bc2838383ff8d08391cf9930159..92baf26a0e44da53c14e83ef1c4f425f7f4287c9 100644 (file)
@@ -784,7 +784,7 @@ register int after;
               ty = STRAT_GOALY(mtmp->mstrategy);
         struct monst *intruder = m_at(tx, ty);
         /*
-         * if there's a monster on the object or in possesion of it,
+         * if there's a monster on the object or in possession of it,
          * attack it.
          */
         if ((dist2(mtmp->mx, mtmp->my, tx, ty) < 2) && intruder
index 79ca0e1d5d9ecb68deb5de2b442171af83d1e9c7..71de30e3ab1e2730d2ceabd452ecacd9ab451629 100644 (file)
@@ -81,8 +81,8 @@ void NDECL(monst_init);
  *     * Use colors given in names wherever possible. If the class has `real'
  *       members with strong color associations, use those.
  *
- *     * Favor `cool' colors for cold-resistent monsters, `warm' ones for
- *       fire-resistent ones.
+ *     * Favor `cool' colors for cold-resistant monsters, `warm' ones for
+ *       fire-resistant ones.
  *
  *     * Try to reserve purple (magenta) for powerful `ruler' monsters (queen
  *       bee, kobold lord, &c.).
index b973a98052248caa11165e60a37aa21a35831f56..1dc44cdc0019ba6aab5d20e303a7327ad07b79ba 100644 (file)
@@ -784,7 +784,7 @@ boolean with_price;
         else if (!iflags.implicit_uncursed
             /* For most items with charges or +/-, if you know how many
              * charges are left or what the +/- is, then you must have
-             * totally identified the item, so "uncursed" is unneccesary,
+             * totally identified the item, so "uncursed" is unnecessary,
              * because an identified object not described as "blessed" or
              * "cursed" must be uncursed.
              *
@@ -949,7 +949,7 @@ boolean with_price;
             Sprintf(eos(bp), " (weapon in %s)", hand_s);
 
             if (warn_obj_cnt && obj == uwep && (EWarn_of_mon & W_WEP) != 0L) {
-                /* presumeably can be felt when blind */
+                /* presumably can be felt when blind */
                 Strcat(bp, " (glowing");
                 if (!Blind)
                     Sprintf(eos(bp), " %s", glow_color(obj->oartifact));
@@ -1069,7 +1069,7 @@ register struct obj *otmp;
  */
     if (otmp->rknown
         || (otmp->oclass != ARMOR_CLASS && otmp->oclass != WEAPON_CLASS
-            && !is_weptool(otmp) &&      /* (redunant) */
+            && !is_weptool(otmp) &&      /* (redundant) */
             otmp->oclass != BALL_CLASS)) /* (useless) */
         return FALSE;
     else /* lack of `rknown' only matters for vulnerable objects */
@@ -2635,9 +2635,9 @@ struct obj *no_wish;
     English either way.  See makeplural() for more on pair/pairs.
 
     We should only double count if the object in question is not
-    refered to as a "pair of".  E.g. We should double if the player
+    referred to as a "pair of".  E.g. We should double if the player
     types "pair of spears", but not if the player types "pair of
-    lenses".  Luckily (?) all objects that are refered to as pairs
+    lenses".  Luckily (?) all objects that are referred to as pairs
     -- boots, gloves, and lenses -- are also not mergable, so cnt is
     ignored anyway.
     */
@@ -2741,7 +2741,7 @@ struct obj *no_wish;
             *(bp + 2) = 'a';
 
         if ((p = strstri(bp, "armour")) != 0) {
-            /* skip past "armo", then copy remainer beyond "u" */
+            /* skip past "armo", then copy remainder beyond "u" */
             p += 4;
             while ((*p = *(p + 1)) != '\0')
                 ++p; /* self terminating */
index 45b2856e353c73a59551bcc8245228721352d29f..ba9e621411c427148634275f6a5cfceb12b224a1 100644 (file)
@@ -2586,7 +2586,7 @@ boolean tinitial, tfrom_file;
             num = 0;
             while (*op) {
                 oc_sym = def_char_to_objclass(*op);
-                /* make sure all are valid obj symbols occuring once */
+                /* make sure all are valid obj symbols occurring once */
                 if (oc_sym != MAXOCLASSES
                     && !index(flags.pickup_types, oc_sym)) {
                     flags.pickup_types[num] = (char) oc_sym;
index 455ab8d8bb4837c99ed8315afc6fb36a7d761d4a..839106c43fef90336c70c61e4cb1f1182bef52f7 100644 (file)
@@ -1233,7 +1233,7 @@ int *wt_before, *wt_after;
             verb = telekinesis ? "acquire" : "lift";
         }
     } else {
-        /* lint supppression */
+        /* lint suppression */
         *obj_nambuf = *where = '\0';
         verb = "";
     }
index 7ecd19190c1cdd769b1404df6c54c28e41646d38..1b6b87603cd371b1963b9489df1c2366bab695bc 100644 (file)
@@ -826,7 +826,7 @@ int mntmp;
     (void) encumber_msg();
 
     retouch_equipment(2);
-    /* this might trigger a recursize call to polymon() [stone golem
+    /* this might trigger a recursive call to polymon() [stone golem
        wielding cockatrice corpse and hit by stone-to-flesh, becomes
        flesh golem above, now gets transformed back into stone golem] */
     if (!uarmg)
@@ -893,7 +893,7 @@ break_armor()
             if (is_flimsy(otmp) && !donning(otmp)) {
                 char hornbuf[BUFSZ];
 
-                /* Future possiblities: This could damage/destroy helmet */
+                /* Future possibilities: This could damage/destroy helmet */
                 Sprintf(hornbuf, "horn%s", plur(num_horns(youmonst.data)));
                 Your("%s %s through %s.", hornbuf, vtense(hornbuf, "pierce"),
                      yname(otmp));
index ea2d143eb4927731adfd0dda013cba41055a3bc2..608aac2c51e7f24514a05e81ef3ef29e98ad8df0 100644 (file)
@@ -1521,7 +1521,7 @@ dosacrifice()
     desecrate_high_altar:
         /*
          * REAL BAD NEWS!!! High altars cannot be converted.  Even an attempt
-         * gets the god who owns it truely pissed off.
+         * gets the god who owns it truly pissed off.
          */
         You_feel("the air around you grow charged...");
         pline("Suddenly, you realize that %s has noticed you...", a_gname());
index cfd2bc514d6d89e3498066fe7d3638b3d7e99436..c050556d5612d8e8ac0921bad117403b07df1bfa 100644 (file)
@@ -469,7 +469,7 @@ xchar x, y;
 }
 
 /*
- * check wether a monster enters/leaves one or more region.
+ * check whether a monster enters/leaves one or more region.
 */
 boolean
 m_in_out_region(mon, x, y)
@@ -1022,7 +1022,7 @@ region_danger()
             /* completely harmless if you don't need to breathe */
             if (nonliving(youmonst.data) || Breathless)
                 continue;
-            /* minor inconvenience if you're posion resistant;
+            /* minor inconvenience if you're poison resistant;
                not harmful enough to be a prayer-level trouble */
             if (Poison_resistance)
                 continue;
index 94832bf38fc78551c79ece12c680ad7699398a23..de832fa0f89f4b1f7c2a49cebc2017b86dd01f3e 100644 (file)
--- a/src/shk.c
+++ b/src/shk.c
@@ -1603,7 +1603,7 @@ int croaked; /* -1: escaped dungeon; 0: quit; 1: died */
     repo.shopkeeper = 0;
 
     /*
-     * Scan all shopkeepres on the level, to prioritize them:
+     * Scan all shopkeepers on the level, to prioritize them:
      * 1) keeper of shop hero is inside and who is owed money,
      * 2) keeper of shop hero is inside who isn't owed any money,
      * 3) other shk who is owed money, 4) other shk who is angry,
@@ -4132,7 +4132,7 @@ boolean altusage; /* some items have an "alternate" use with different cost */
            degrades its value, but not charging anything would make
            identification too easy; charge an amount comparable to
            what is charged for an ordinary lamp (don't bother with
-           angry shk surchage) */
+           angry shk surcharge) */
         if (!altusage)
             tmp = (long) objects[OIL_LAMP].oc_cost;
         else
index bc93e75de21905264d0d957c4d11fcbc66ae3a3d..5950db6974b67d8358f48d3843e2198583c06692 100644 (file)
@@ -503,10 +503,10 @@ register struct monst *mtmp;
     if (is_silent(ptr))
         return (0);
 
-    /* leader might be poly'd; if he can still speak, give leader speach */
+    /* leader might be poly'd; if he can still speak, give leader speech */
     if (mtmp->m_id == quest_status.leader_m_id && msound > MS_ANIMAL)
         msound = MS_LEADER;
-    /* make sure it's your role's quest quardian; adjust if not */
+    /* make sure it's your role's quest guardian; adjust if not */
     else if (msound == MS_GUARDIAN && ptr != &mons[urole.guardnum])
         msound = mons[genus(monsndx(ptr), 1)].msound;
     /* some normally non-speaking types can/will speak if hero is similar */
index 877fb255a1e01a3623101a4da86384271f16c08e..2eaf74d8646ac7da0c5263aa493d60a61531afdb 100644 (file)
@@ -58,9 +58,9 @@ STATIC_DCL const char *FDECL(spelltypemnemonic, (int));
  *     Pri are very aware of healing magic through theological research
  *     Ran avoid magic, preferring to fight unseen and unheard
  *     Rog are moderately aware of magic through trickery
- *     Sam have limited magical awareness, prefering meditation to conjuring
+ *     Sam have limited magical awareness, preferring meditation to conjuring
  *     Tou are aware of magic from all the great films they have seen
- *     Val have limited magical awareness, prefering fighting
+ *     Val have limited magical awareness, preferring fighting
  *     Wiz are trained mages
  *
  *     The arms penalty is lessened for trained fighters Bar, Kni, Ran,
@@ -734,7 +734,7 @@ cast_protection()
     /* The more u.uspellprot you already have, the less you get,
      * and the better your natural ac, the less you get.
      *
-     * LEVEL AC    SPELLPROT from sucessive SPE_PROTECTION casts
+     * LEVEL AC    SPELLPROT from successive SPE_PROTECTION casts
      *      1     10    0,  1,  2,  3,  4
      *      1      0    0,  1,  2,  3
      *      1    -10    0,  1,  2
index 270dddd4e842096ee5b3714f7d3db1adf5ea528d..53b276ad98f8b9f5aeb7b79f3d35d359c9f5833a 100644 (file)
@@ -591,7 +591,7 @@ int ochance, achance; /* percent chance for ordinary item, artifact */
         }
         freeinv(obj);
     } else {
-        /* not carried; presumeably thrown or kicked */
+        /* not carried; presumably thrown or kicked */
         if (canspotmon(mon))
             pline("%s absorbs %s!", Monnam(mon), yname(obj));
     }
index 956419092c44e85563e69078bcd5768595a04cd9..ed0c15d8c59f1180a177edfdf9e875248ef7517b 100644 (file)
@@ -576,7 +576,7 @@ int reason; /* Player was thrown off etc. */
              * instead
              * calling them first and calling pickup() afterwards.  But it
              * would take a lot of work to keep this change from having any
-             * unforseen side effects (for instance, you would no longer be
+             * unforeseen side effects (for instance, you would no longer be
              * able to walk onto a square with a hole, and autopickup before
              * falling into the hole).
              */
index 146f9a68e126b76e1a87ea8f6b471483c9df1060..5218eea0f06e9afc3a13535ccd0d994d77fd17d6 100644 (file)
@@ -98,7 +98,7 @@ unsigned gpflags;
  *
  * Attempt to find a good place for the given monster type in the closest
  * position to (xx,yy).  Do so in successive square rings around (xx,yy).
- * If there is more than one valid positon in the ring, choose one randomly.
+ * If there is more than one valid position in the ring, choose one randomly.
  * Return TRUE and the position chosen when successful, FALSE otherwise.
  */
 boolean
index 36fc43a96ddad199f3d0b8746a9b367a7f22353d..d3e63363bbe73997b3a0810290b3bfca9f6dfdbc 100644 (file)
@@ -3783,7 +3783,7 @@ struct trap *ttmp;
             move_bc(0, bc, bx, by, cx, cy);
         /* marking the trap unseen forces dotrap() to treat it like a new
            discovery and prevents pickup() -> look_here() -> check_here()
-           from giving a redudant "there is a <trap> here" message when
+           from giving a redundant "there is a <trap> here" message when
            there are objects covering this trap */
         ttmp->tseen = 0; /* hack for check_here() */
         /* trigger the trap */
index e7596c879d4484f21e435fdc92038654e246d9c2..a51ca3124ba00ff24a4cbb2298c96263701f117c 100644 (file)
@@ -1304,7 +1304,7 @@ struct obj *otmp;
 /*
  * Player uses theft attack against monster.
  *
- * If the target is wearing body armor, take all of its possesions;
+ * If the target is wearing body armor, take all of its possessions;
  * otherwise, take one object.  [Is this really the behavior we want?]
  */
 STATIC_OVL void
index b9d7a4ab12ed87abb95ba94f13263ea9b4fda0d6..9ed99017d1cba323102140c6e449cce29a40cd44 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -80,7 +80,7 @@ const char *const flash_types[] =
  * changed; now such wands won't be discovered.  But if the type is
  * already discovered, then the individual wand whose effect was just
  * observed will be flagged as if seen.  [You already know wands of
- * striking; you zap "a wand" and observe striking effect (presumeably
+ * striking; you zap "a wand" and observe striking effect (presumably
  * by sound or touch); it'll become shown in inventory as "a wand of
  * striking".]
  *
@@ -4085,7 +4085,7 @@ const char *msg;
 #define MIN_ICE_TIME 50
 #define MAX_ICE_TIME 2000
 /*
- * Uusally start a melt_ice timer; sometimes the ice will become
+ * Usually start a melt_ice timer; sometimes the ice will become
  * permanent instead.
  */
 void
@@ -4947,7 +4947,7 @@ retry:
         if (!otmp)
             return; /* for safety; should never happen */
     } else if (otmp == &nothing) {
-        /* explicitly wished for "nothing", presumeably attempting
+        /* explicitly wished for "nothing", presumably attempting
            to retain wishless conduct */
         return;
     }
index f100f6faf46950686ea5ba517ad35f8e5efce5c2..2fe8a1e33049845d8532945b0d689a054f44be25 100644 (file)
@@ -41,7 +41,7 @@ static void select_offscreen_port(tty_record *record);
         return general_failure;
 
 /*
- * Simple macro for deciding wether we draw at once or delay
+ * Simple macro for deciding whether we draw at once or delay
  */
 #define DRAW_DIRECT (TA_ALWAYS_REFRESH & record->attribute[TTY_ATTRIB_FLAGS])
 
index 073d1b74e2a647a463edb580cb31804d8ea97344..55e362f6631f68515bd6ceeaff69c22259d62213 100644 (file)
@@ -287,7 +287,7 @@ setftty()
     }
     if (!IS_7BIT(inittyb))
         curttyb.inputflags &= ~STRIPHI;
-    /* If an interrupt character is used, it will be overriden and
+    /* If an interrupt character is used, it will be overridden and
      * set to ^C.
      */
     if (intr_char != nonesuch && curttyb2.intr_sym != '\003') {
index 3f282cece28d67efbf07b0731775492ead915e5a..9e0c559d453e0cff88b3160498a41c0f9d38ac19 100644 (file)
@@ -531,7 +531,7 @@ plselInitDialog(HWND hWnd)
 
 /* adjust role/race/alignment/gender list - filter out
    invalid combinations
-   changed_sel points to the list where selection occured
+   changed_sel points to the list where selection occurred
    (-1 if unknown)
 */
 void
index b4c0dbeba07365e81877ed7c6b9809d9c1864fec..efd35dff821a42913973f88634ef6061ee7cdac4 100644 (file)
@@ -509,7 +509,7 @@ plselInitDialog(HWND hWnd)
 
 /* adjust role/race/alignment/gender list - filter out
    invalid combinations
-   changed_sel points to the list where selection occured
+   changed_sel points to the list where selection occurred
    (-1 if unknown)
 */
 void