]> granicus.if.org Git - nethack/commitdiff
some spelling corrections
authornhmall <nhmall@nethack.org>
Thu, 8 Sep 2022 14:54:11 +0000 (10:54 -0400)
committernhmall <nhmall@nethack.org>
Thu, 8 Sep 2022 14:54:11 +0000 (10:54 -0400)
The pull request included some changes that were neither accidental nor
unintentional, so only a subset of the changes from pull request #869
submitted by klorpa were manually applied.

behaviour  -> behavior
speach     -> speech
knowlege   -> knowledge
incrments  -> increments
stethscope -> stethoscope
staiway    -> stairway
arifact    -> artifact
extracing  -> extracting

The uses of "iff" were left alone.

Close #869

35 files changed:
doc/Guidebook.mn
doc/Guidebook.tex
doc/fixes3-7-0.txt
include/display.h
include/flag.h
include/monflag.h
include/optlist.h
include/spell.h
outdated/win/Qt3/Install.Qt
outdated/win/Qt3/qt3_win.cpp
src/apply.c
src/detect.c
src/do_name.c
src/dogmove.c
src/eat.c
src/hack.c
src/lock.c
src/makemon.c
src/mhitm.c
src/mklev.c
src/mon.c
src/muse.c
src/options.c
src/pickup.c
src/read.c
src/region.c
src/rumors.c
src/save.c
src/sounds.c
src/steal.c
src/trap.c
src/wizard.c
src/zap.c
sys/msdos/msdoshlp.txt
win/X11/wintext.c

index c6f24e51e1be8d579ba5eb17d4c01c52477ed5d2..071d4303c6c21e7b1d41765aca8f1639835a6ff6 100644 (file)
@@ -1495,7 +1495,7 @@ Default key is \(oqR\(cq.
 Repeat the previous command.
 Default key is \(oq\(haA\(cq.
 .lp "#reqmenu "
-Prefix key to modify the behaviour or request menu from some commands.
+Prefix key to modify the behavior or request menu from some commands.
 Prevents autopickup when used with movement commands.
 Default key is \(oqm\(cq.
 .lp "#retravel"
index 326aa41ffca8a0c498683236a00460c9490ec738..3bf6272f2d4d091ee5d4a2c9a7a3bf5f5e018f63 100644 (file)
@@ -1609,7 +1609,7 @@ Repeat the previous command.
 Default key is~`{\tt \^{}A}'.
 %.lp
 \item[\tb{\#reqmenu}]
-Prefix key to modify the behaviour or request menu from some commands.
+Prefix key to modify the behavior or request menu from some commands.
 Prevents autopickup when used with movement commands.
 Default key is `{\tt m}'.
 %.lp
index 479fc5c575883e481f10030865303a27542e727e..593105247f3b47b98bac0ed3bfa6b752daa87517 100644 (file)
@@ -258,7 +258,7 @@ if the Wizard of Yendor fled up the stairs on level 1, the game would behave
        as if he was still in play, but he wouldn't be on migrating monsters
        list so couldn't be brought back and wouldn't appear on Plane of Earth
        (stale non-zero value for context.no_of_wizards)
-if a mind flayer's psychic blast targetted a hidden monster, feedback named
+if a mind flayer's psychic blast targeted a hidden monster, feedback named
        the monster but it wasn't brought out of hiding
 hero poly'd into a mind flayer who used #monster to emit a psychic blast was
        able to harm mindless monsters with it
@@ -298,7 +298,7 @@ make gasp/exclamation message from peaceful monsters be more verbose to
 when make was invoked with -j makedefs instances could end up running in
        parallel and could trample on each other's temp files; default to
        using mkstemp(); allow a port runtime library implementation that lacks
-       mkstemp() to define HAS_NO_MKSTEMP to revert to the old behaviour;
+       mkstemp() to define HAS_NO_MKSTEMP to revert to the old behavior;
        provide a work-alike mkstemp() implementation for windows visual studio
        in mdlib.c so there is no requirement to define HAS_NO_MKSTEMP there
 make piranhas faster and give them extra bite attack
@@ -411,7 +411,7 @@ curses interface failed to honor menu_xxx option settings for menu interaction
 during engraving, spaces were counted instead of non-spaces [later: affected
        code is gone, removed when engraving was converted into an occupation]
 when an explosion scatters objects, make any that fly over sinks stop there
-output message when changing fastmove mode while cursor targetting
+output message when changing fastmove mode while cursor targeting
 messages when Minetown watchmen become angry could report "you see an angry
        guard approaching" even if he was invisible and hero can't see invis
 when autopickup is on but disabled due to being inside a shop, have ^X say so
@@ -1210,7 +1210,7 @@ when picking up a thrown weapon while quiver is empty, don't put it into the
 using bhitpos in flooreffects to handle erosion damage broke its original use
        of tracking wand zaps if a teleportation zap hit an object; subsequent
        zap traversal was done from object's landing spot rather than from its
-       zap hit spot, resulting in scrambled wand targetting
+       zap hit spot, resulting in scrambled wand targeting
 restore previous behavior of the 'altmeta' option (only wait for a second
        character when getting a command keystroke, not other key input)
 baby gold dragons weren't able to grow into adult gold dragons
index f8f8585dd3b50c39e9ad7ba8b403ed2e964685ca..457e20b8fec34578ea445c56e3750355a7c03f3d 100644 (file)
@@ -968,7 +968,7 @@ enum glyph_offsets {
         || glyph_is_obj_piletop(glyph))
 #endif
 
-/* mgflags for altering map_glyphinfo() internal behaviour */
+/* mgflags for altering map_glyphinfo() internal behavior */
 #define MG_FLAG_NORMAL     0x00
 #define MG_FLAG_NOOVERRIDE 0x01 /* disregard accessibility override values */
 
index f4006d118ea7ef17717130bd09adad2389f9996b..fe5b78ab049158adea31b78ac324381e705fdf53 100644 (file)
@@ -184,7 +184,7 @@ struct debug_flags {
 /*
  * Stuff that really isn't option or platform related and does not
  * get saved and restored.  They are set and cleared during the game
- * to control the internal behaviour of various NetHack functions
+ * to control the internal behavior of various NetHack functions
  * and probably warrant a structure of their own elsewhere some day.
  */
 struct instance_flags {
index b0fc9afcfd0133a6352506e11891823defe2291f..080aa5ea63732e760da11c9ad50af7f2bab49e04 100644 (file)
@@ -34,7 +34,7 @@ enum ms_sounds {
     MS_IMITATE  = 20,   /* imitates others (leocrotta) */
     MS_WERE     = 21,   /* lycanthrope in human form */
     MS_ORC      = 22,   /* intelligent brutes */
-                        /* from here onward, can speach can be comprehended */
+                        /* from here onward, can speech can be comprehended */
     MS_HUMANOID = 23,   /* generic traveling companion */
     MS_ARREST   = 24,   /* "Stop in the name of the law!" (Kops) */
     MS_SOLDIER  = 25,   /* army and watchmen expressions */
index f98bd3ca2c58c1abe22567e69288c9dbd6f23045..b12e1087564b54e751da41500fd772fccba31920 100644 (file)
@@ -357,7 +357,7 @@ static int optfn_##a(int, int, boolean, char *, char *);
                 No, Yes, No, NoAlias, "edit menu colors")
     NHOPTC(menuinvertmode, Advanced, 5, opt_in, set_in_game,
                 No, Yes, No, No, NoAlias,
-                "experimental behaviour of menu inverts")
+                "experimental behavior of menu inverts")
     NHOPTC(menustyle, Advanced, MENUTYPELEN, opt_in, set_in_game,
                 Yes, Yes, No, Yes, NoAlias,
                 "user interface for object selection")
index a54fa0a9f9b8ca4b63fc79e62667e262e88caf9f..f52053b479fd48f9e31cb55a0255157d7d022e5a 100644 (file)
@@ -14,7 +14,7 @@
 struct spell {
     short sp_id;  /* spell id (== object.otyp) */
     xint16 sp_lev; /* power level */
-    int sp_know;  /* knowlege of spell */
+    int sp_know;  /* knowledge of spell */
 };
 
 enum spellknowledge {
index 6a3de9c3e5791ec6b022aec8dfa397c42b2b7e6c..559e6f418de8afdb5626e0ccbce378734925c459 100644 (file)
@@ -76,7 +76,7 @@ with the following additional steps:
       something as challenging to compile as NetHack before you can
       already build a Qtopia application for your target device.
 
-   2. If you are cross-compiling (eg. targetting an ARM-based handheld),
+   2. If you are cross-compiling (eg. targeting an ARM-based handheld),
       be sure to follow the steps for cross-compiling in the Makefile.src
       and Makefile.utl files.
 
index 4f77e220c37e2919ff9eb43e6c081efb4ca9a31f..dcbe53130358f2ea1a887c6ef2b69578685fbaa8 100644 (file)
@@ -4283,7 +4283,7 @@ char NetHackQtYnDialog::Exec()
 }
 void NetHackQtYnDialog::keyPressEvent(QKeyEvent* event)
 {
-    // Don't want QDialog's Return/Esc behaviour
+    // Don't want QDialog's Return/Esc behavior
     event->ignore();
 }
 
index de6562755980efd70e79e7d54fea9b3bade79898..abe840714767b193ac585e7d204d6897d6a247f3 100644 (file)
@@ -1061,7 +1061,7 @@ use_mirror(struct obj *obj)
         return ECMD_TIME;
 
     /* couldsee(mtmp->mx, mtmp->my) is implied by the fact that bhit()
-       targetted it, so we can ignore possibility of X-ray vision */
+       targeted it, so we can ignore possibility of X-ray vision */
     vis = canseemon(mtmp);
     /* ways to directly see monster (excludes X-ray vision, telepathy,
        extended detection, type-specific warning) */
@@ -3824,7 +3824,7 @@ do_break_wand(struct obj *obj)
             continue;
         } else if (x != u.ux || y != u.uy) {
             /*
-             * Wand breakage is targetting a square adjacent to the hero,
+             * Wand breakage is targeting a square adjacent to the hero,
              * which might contain a monster or a pile of objects or both.
              * Handle objects last; avoids having undead turning raise an
              * undead's corpse and then attack resulting undead monster.
@@ -3843,7 +3843,7 @@ do_break_wand(struct obj *obj)
             }
         } else {
             /*
-             * Wand breakage is targetting the hero.  Using xdir[]+ydir[]
+             * Wand breakage is targeting the hero.  Using xdir[]+ydir[]
              * deltas for location selection causes this case to happen
              * after all the surrounding squares have been handled.
              * Process objects first, in case damage is fatal and leaves
index 61dffd10f4ba0f63c4f0369d21ed60041a0b014c..33896260b09d12d1f282233bc641f169adaa2f74 100644 (file)
@@ -1755,8 +1755,8 @@ find_trap(struct trap *trap)
     exercise(A_WIS, TRUE);
     feel_newsym(trap->tx, trap->ty);
 
-    /* The "Hallucination ||" is to preserve 3.6.1 behaviour, but this
-       behaviour might need a rework in the hallucination case
+    /* The "Hallucination ||" is to preserve 3.6.1 behavior, but this
+       behavior might need a rework in the hallucination case
        (e.g. to not prompt if any trap glyph appears on the square). */
     if (Hallucination ||
         levl[trap->tx][trap->ty].glyph != trap_to_glyph(trap)) {
index d23f76ef95292e389fb52732153a210d0ef60e98..3b1bc72c935ce9653827e8a6acf06bb1be4c47c4 100644 (file)
@@ -847,7 +847,7 @@ getpos(coord *ccp, boolean force, const char *goal)
                 getpos_help(force, goal);
             else /* ^R */
                 docrt(); /* redraw */
-            /* update message window to reflect that we're still targetting */
+            /* update message window to reflect that we're still targeting */
             show_goal_msg = TRUE;
             msg_given = TRUE;
         } else if (c == g.Cmd.spkeys[NHKF_GETPOS_SHOWVALID]
@@ -1328,7 +1328,7 @@ do_oname(struct obj *obj)
            the text had been trodden upon, sometimes picking
            punctuation instead of an arbitrary letter;
            unfortunately, we have to cover the possibility of
-           it targetting spaces so failing to make any change
+           it targeting spaces so failing to make any change
            (we know that it must eventually target a nonspace
            because buf[] matches a valid artifact name) */
         Strcpy(bufcpy, buf);
index 6f487bed4474dfba19a8f6de72844bb4e89be235..5bfea859ebc2251a13d869300f54e343eea8273f 100644 (file)
@@ -445,7 +445,7 @@ dog_invent(struct monst *mtmp, struct edog *edog, int udist)
     omy = mtmp->my;
 
     /* If we are carrying something then we drop it (perhaps near @).
-     * Note: if apport == 1 then our behaviour is independent of udist.
+     * Note: if apport == 1 then our behavior is independent of udist.
      * Use udist+1 so steed won't cause divide by zero.
      */
     if (droppables(mtmp)) {
index f49d1f00701c69d862e540dbd087dea9906e8a81..25232fcfe273aa67596b989f726aa1e1beccd059 100644 (file)
--- a/src/eat.c
+++ b/src/eat.c
@@ -637,7 +637,7 @@ eat_brains(struct monst *magr, struct monst *mdef,
             exercise(A_WIS, TRUE);
             *dmg_p += xtra_dmg;
         }
-        /* targetting another mind flayer or your own underlying species
+        /* targeting another mind flayer or your own underlying species
            is cannibalism */
         (void) maybe_cannibal(monsndx(pd), TRUE);
 
index 41acee2a743ac4d5bffeb8ec965e9ebf82e54cb6..9cc61178fe69ae832a52408e2e097e102b3c7962 100644 (file)
@@ -1404,7 +1404,7 @@ is_valid_travelpt(coordxy x, coordxy y)
    (all failures and most successful escapes leave hero at original spot) */
 static boolean
 trapmove(
-    coordxy x, coordxy y, /* targetted destination, <u.ux+u.dx,u.uy+u.dy> */
+    coordxy x, coordxy y, /* targeted destination, <u.ux+u.dx,u.uy+u.dy> */
     struct trap *desttrap) /* nonnull if another trap at <x,y> */
 {
     boolean anchored = FALSE;
@@ -1947,7 +1947,7 @@ domove_fight_empty(coordxy x, coordxy y)
         if (boulder) {
             Strcpy(buf, ansimpleoname(boulder));
         } else if (Underwater && !is_pool(x, y)) {
-            /* Underwater, targetting non-water; the map just shows blank
+            /* Underwater, targeting non-water; the map just shows blank
                because you don't see remembered terrain while underwater;
                although the hero can attack an adjacent monster this way,
                assume he can't reach out far enough to distinguish terrain */
index d6f4ec1d55acaa3ebe0b3f119d6d8a3ecfef68cb..00cc38a9978c75f0d2addf380e3fb6dab1af5467 100644 (file)
@@ -794,7 +794,7 @@ doopen_indir(coordxy x, coordxy y)
         return ECMD_TIME;
 
     /* when choosing a direction is impaired, use a turn
-       regardless of whether a door is successfully targetted */
+       regardless of whether a door is successfully targeted */
     if (Confusion || Stunned)
         res = ECMD_TIME;
 
@@ -954,7 +954,7 @@ doclose(void)
         return ECMD_TIME;
 
     /* when choosing a direction is impaired, use a turn
-       regardless of whether a door is successfully targetted */
+       regardless of whether a door is successfully targeted */
     if (Confusion || Stunned)
         res = ECMD_TIME;
 
index e7690ed04f1e3317d36b09cf40dcf0e957142aea..6f3535f47ca2c2f46b5ddfdde7adc4947944d1be 100644 (file)
@@ -1480,7 +1480,7 @@ unmakemon(
 
     /* if count has reached the limit of 255, we don't know whether
        that just happened when creating this monster or the threshold
-       had already been reached and further incrments were suppressed;
+       had already been reached and further increments were suppressed;
        assume the latter */
     if (countbirth && g.mvitals[mndx].born > 0 && g.mvitals[mndx].born < 255)
         g.mvitals[mndx].born -= 1;
index 1b539c9231f1ee0b525636b9c8b828ce783bef4a..f4ca94d7fa17185e35ecf242000f05f2f71f1e6e 100644 (file)
@@ -824,7 +824,7 @@ gulpmm(
          *  removes it when they match.  So magr is still at mdef's
          *  former spot these days.
          *
-         *  We still potentially do one fixup:  if the gulp targetted
+         *  We still potentially do one fixup:  if the gulp targeted
          *  an inhospitable location, magr will return to its previous
          *  spot instead of staying.
          */
index 38a7e882db89532091aa669d04a59641bcfe5aa7..0e294e1fba38ecf010008de8b77d1a3a03964c07 100644 (file)
@@ -992,7 +992,7 @@ makelevel(void)
  *      Place deposits of minerals (gold and misc gems) in the stone
  *      surrounding the rooms on the map.
  *      Also place kelp in water.
- *      mineralize(-1, -1, -1, -1, FALSE); => "default" behaviour
+ *      mineralize(-1, -1, -1, -1, FALSE); => "default" behavior
  */
 void
 mineralize(int kelp_pool, int kelp_moat, int goldprob, int gemprob,
index 7f426134d52e55ed6da5bcce6c53f730f6588551..6e54e60ce4327afed31867a906a4ec154f92326d 100644 (file)
--- a/src/mon.c
+++ b/src/mon.c
@@ -2108,7 +2108,7 @@ mm_2way_aggression(struct monst *magr, struct monst *mdef)
 
 /* Monster against monster special attacks; for the specified monster
    combinations, this allows one monster to attack another adjacent one
-   in the absence of Conflict.  There is no provision for targetting
+   in the absence of Conflict.  There is no provision for targeting
    other monsters; just hand to hand fighting when they happen to be
    next to each other. */
 static long
@@ -3181,7 +3181,7 @@ xkilled(
     newsym(x, y);
 
  cleanup:
-    /* punish bad behaviour */
+    /* punish bad behavior */
     if (is_human(mdat)
         && (!always_hostile(mdat) && mtmp->malign <= 0)
         && (mndx < PM_ARCHEOLOGIST || mndx > PM_WIZARD)
index 410b87e1f1f81efc3331d1620091ae2df6edbefa..a8090c1a5794f83b647d9af56a79d3042d1d51ec 100644 (file)
@@ -1280,7 +1280,7 @@ find_offensive(struct monst* mtmp)
         && !uwep && !uarmu && !uarm && !uarmh
         && !uarms && !uarmg && !uarmc && !uarmf)
         return FALSE;
-    /* all offensive items require orthogonal or diagonal targetting */
+    /* all offensive items require orthogonal or diagonal targeting */
     if (!lined_up(mtmp))
         return FALSE;
 
@@ -1959,7 +1959,7 @@ find_misc(struct monst* mtmp)
             && u_at(mtmp->mux, mtmp->muy)
             && next2u(mtmp->mx, mtmp->my)
             /* don't bother if it can't work (this doesn't
-               prevent cursed weapons from being targetted) */
+               prevent cursed weapons from being targeted) */
             && (canletgo(uwep, "")
                 || (u.twoweap && canletgo(uswapwep, "")))) {
             g.m.misc = obj;
index 677b9916b41bc006a83dca14cd3b0000c5df62a5..6104b40d4ebec948c831920424981fc4eab9ab40 100644 (file)
@@ -1092,7 +1092,7 @@ optfn_disclose(int optidx, int req, boolean negated, char *opts, char *op)
          *      DISCLOSE_SPECIAL_WITHOUT_PROMPT  ...to set up sort order.
          *
          * Those setting values can be used in the option
-         * string as a prefix to get the desired behaviour.
+         * string as a prefix to get the desired behavior.
          *
          * For backward compatibility, no prefix is required,
          * and the presence of a i,a,g,v, or c without a prefix
index b7282b2c6e057b31efd5837c6a58e79ead926106..186d184b38f1f78f2d9e7a70a0d22b010b767ca2 100644 (file)
@@ -1140,7 +1140,7 @@ query_objlist(const char *qstr,        /* query string */
 int
 query_category(const char *qstr,      /* query string */
                struct obj *olist,     /* the list to pick from */
-               int qflags,            /* behaviour modification flags */
+               int qflags,            /* behavior modification flags */
                menu_item **pick_list, /* return list of items picked */
                int how)               /* type of query */
 {
@@ -2113,12 +2113,12 @@ doloot_core(void)
                 looted_mon = TRUE;
         }
         /* always use a turn when choosing a direction is impaired,
-           even if you've successfully targetted a saddled creature
+           even if you've successfully targeted a saddled creature
            and then answered "no" to the "remove its saddle?" prompt */
         if (Confusion || Stunned)
             timepassed = 1;
 
-        /* Preserve pre-3.3.1 behaviour for containers.
+        /* Preserve pre-3.3.1 behavior for containers.
          * Adjust this if-block to allow container looting
          * from one square away to change that in the future.
          */
index 284569e7b06416bdf5d45c0507757e3e6e2d9cca..4e4d2f0cc580649daeaa31c9226465bdf8b5bf10 100644 (file)
@@ -3105,7 +3105,7 @@ create_particular_creation(struct _create_particular_data* d)
             mtmp->mundetected = 1;
         if (d->sleeping)
             mtmp->msleeping = 1;
-        /* iff asking for 'hidden', show locaton of every created monster
+        /* iff asking for 'hidden', show location of every created monster
            that can't be seen--whether that's due to successfully hiding
            or vision issues (line-of-sight, invisibility, blindness) */
         if (d->hidden && !canspotmon(mtmp)) {
index 33f8a79952be4f532f143deda187b809d3f5daa5..f4288223e694267a63ca7e8e88da83336070ab61 100644 (file)
@@ -1006,7 +1006,7 @@ inside_gas_cloud(genericptr_t p1, genericptr_t p2)
     int dam = reg->arg.a_int;
 
     /*
-     * Gas clouds can't be targetted at water locations, but they can
+     * Gas clouds can't be targeted at water locations, but they can
      * start next to water and spread over it.
      */
 
index e1aea8bac96803c13130b040b15a153c23e221bd..b1ef874b6ca5f81aa4ad9c73096338098c9dcbb2 100644 (file)
@@ -893,7 +893,7 @@ init_CapMons(void)
      * CapMons[] init doesn't kick in until needed.  To force this name
      * dump, set DEBUGFILES to "CapMons" in your environment (or in
      * sysconf) prior to starting nethack, wish for a statue of an Archon
-     * and drop it if held, then step away and apply a stethscope towards
+     * and drop it if held, then step away and apply a stethoscope towards
      * it to trigger a message that passes "Archon" to the() which will
      * then call CapitalMon() which in turn will call init_CapMons().
      */
index 8ea4cd219e3a02319f0bb5e6009c4ddce5df5b29..2824f7f7ce048175918b53d6a67eb950d9a2b374 100644 (file)
@@ -304,7 +304,7 @@ savegamestate(NHFILE* nhfp)
        pointers into invent (uwep, uarmg, uamul, &c) are set to Null too */
     saveobjchn(nhfp, &g.invent);
 
-    /* save ball and chain if they happen to be in an unusal state */
+    /* save ball and chain if they happen to be in an unusual state */
     save_bc(nhfp);
 
     saveobjchn(nhfp, &g.migrating_objs); /* frees objs and sets to Null */
@@ -728,7 +728,7 @@ save_stairs(NHFILE* nhfp)
                 bwrite(nhfp->fd, (genericptr_t) stway, sizeof *stway);
             }
             if (use_relative) {
-                /* reset staiway dlevel back to absolute */
+                /* reset stairway dlevel back to absolute */
                 stway->tolev.dlevel += u.uz.dlevel;
             }
         }
index bb4f627465e65431602e7c02188a014ad3046773..fdecb5c5658b769a8c46e1977eabda1ac0517c20 100644 (file)
@@ -898,7 +898,7 @@ domonnoise(register struct monst* mtmp)
                 pline_msg = "threatens you.";
             break;
         }
-        /* Generic peaceful humanoid behaviour. */
+        /* Generic peaceful humanoid behavior. */
         if (mtmp->mflee)
             pline_msg = "wants nothing to do with you.";
         else if (mtmp->mhp < mtmp->mhpmax / 4)
index e3af075a4830801747e5456ca9a6a7ca216333a1..557c1e11912be6ebedbdd02db056b1f57ec37b73 100644 (file)
@@ -567,7 +567,7 @@ stealamulet(struct monst* mtmp)
     }
 
     if (!otmp) {
-        /* if we didn't find any quest arifact, find another valuable item */
+        /* if we didn't find any quest artifact, find another valuable item */
         if (u.uhave.amulet) {
             real = AMULET_OF_YENDOR;
             fake = FAKE_AMULET_OF_YENDOR;
@@ -595,7 +595,7 @@ stealamulet(struct monst* mtmp)
     }
 
     if (otmp) { /* we have something to snatch */
-        /* take off outer gear if we're targetting [hypothetical]
+        /* take off outer gear if we're targeting [hypothetical]
            quest artifact suit, shirt, gloves, or rings */
         if ((otmp == uarm || otmp == uarmu) && uarmc)
             remove_worn_item(uarmc, FALSE);
@@ -680,7 +680,7 @@ mdrop_obj(
     coordxy omx = mon->mx, omy = mon->my;
     long unwornmask = obj->owornmask;
     /* call distant_name() for its possible side-effects even if the result
-       might not be printed, and do it before extracing obj from minvent */
+       might not be printed, and do it before extracting obj from minvent */
     char *obj_name = distant_name(obj, doname);
 
     extract_from_minvent(mon, obj, FALSE, TRUE);
index c77fc74983c3343d05cfe5b693ba1efebfaec4bc..561a2ca8897465008374b92becb0996b7db6ef9a 100644 (file)
@@ -5297,7 +5297,7 @@ untrap(
     }
 }
 
-/* for magic unlocking; returns true if targetted monster (which might
+/* for magic unlocking; returns true if targeted monster (which might
    be hero) gets untrapped; the trap remains intact */
 boolean
 openholdingtrap(
@@ -5389,7 +5389,7 @@ openholdingtrap(
     return TRUE;
 }
 
-/* for magic locking; returns true if targetted monster (which might
+/* for magic locking; returns true if targeted monster (which might
    be hero) gets hit by a trap (might avoid actually becoming trapped) */
 boolean
 closeholdingtrap(
@@ -5430,7 +5430,7 @@ closeholdingtrap(
     return result;
 }
 
-/* for magic unlocking; returns true if targetted monster (which might
+/* for magic unlocking; returns true if targeted monster (which might
    be hero) gets hit by a trap (target might avoid its effect) */
 boolean
 openfallingtrap(
index 0b3056d3814a420f3845e5e9aee7ec5ba242d3d4..63ae39a9b1672b1e75082113ea1ca2b4da8e00ec 100644 (file)
@@ -241,7 +241,7 @@ target_on(int mask, struct monst *mtmp)
         else if ((otmp = on_ground(otyp)))
             return STRAT(STRAT_GROUND, otmp->ox, otmp->oy, mask);
         else if ((mtmp2 = other_mon_has_arti(mtmp, otyp)) != 0
-                 /* when seeking the Amulet, avoid targetting the Wizard
+                 /* when seeking the Amulet, avoid targeting the Wizard
                     or temple priests (to protect Moloch's high priest) */
                  && (otyp != AMULET_OF_YENDOR
                      || (!mtmp2->iswiz && !inhistemple(mtmp2))))
index dc68b447f42b8efa624d106650f216d95aabdeb5..92069d4fa1b5b5445485e8011d547264af864f83 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -5342,7 +5342,7 @@ destroy_item(int osym, int dmgtyp)
      * rehumanization could also drop hero onto a trap, and there's no
      * straightforward way to defer that.  Things could be improved by
      * redoing this to use two passes, first to collect a list or array
-     * of o_id and quantity of what is targetted for destruction,
+     * of o_id and quantity of what is targeted for destruction,
      * second pass to handle the destruction.]
      */
     bypass_objlist(g.invent, FALSE); /* clear bypass bit for invent */
index 441f3bb619e33105549157475a4f75325665ed24..2a074ed39ddaccd66eb458b46090e42bfc4f20db 100644 (file)
@@ -101,7 +101,7 @@ OPTIONS=VIDEOCOLORS
                (defaults.nh only)
                This option is only provided because some people on
                r.g.r.n mentioned how they liked to modify the color
-               values from the default ANSI.SYS behaviour, and were
+               values from the default ANSI.SYS behavior, and were
                "upset" to find out that they could no longer do so
                under 3.1.2.  The color map is as accurate as possible
                on standard PC video hardware as it stands, and any
index ee96a32340d934f8aa004b9d05f98205bfabef80..d835746582479b56761de5f8388b2f6b979ac9a0 100644 (file)
@@ -230,7 +230,7 @@ display_text_window(struct xwindow *wp, boolean blocking)
     if (num_args)
         XtSetValues(wp->w, args, num_args);
 
-    /* We want the user to acknowlege. */
+    /* We want the user to acknowledge. */
     if (blocking) {
         (void) x_event(EXIT_ON_EXIT);
         nh_XtPopdown(wp->popup);