From 66dd87454bdbff197b3d61a1ccc895fb1c63f555 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 17 Oct 2015 13:47:25 +0300 Subject: [PATCH] Comment typofixes, pt 3 --- include/dungeon.h | 2 +- include/flag.h | 2 +- src/apply.c | 2 +- src/artifact.c | 2 +- src/attrib.c | 2 +- src/do.c | 2 +- src/dothrow.c | 2 +- src/dungeon.c | 2 +- src/eat.c | 2 +- src/hack.c | 2 +- src/invent.c | 4 ++-- src/mhitm.c | 2 +- src/mklev.c | 2 +- src/mon.c | 2 +- src/shk.c | 2 +- src/trap.c | 2 +- src/vision.c | 2 +- src/wizard.c | 2 +- src/zap.c | 8 ++++---- 19 files changed, 23 insertions(+), 23 deletions(-) diff --git a/include/dungeon.h b/include/dungeon.h index df6a2c8da..4daa20dec 100644 --- a/include/dungeon.h +++ b/include/dungeon.h @@ -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 */ diff --git a/include/flag.h b/include/flag.h index d347f8d40..b39a1f064 100644 --- a/include/flag.h +++ b/include/flag.h @@ -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 */ diff --git a/src/apply.c b/src/apply.c index bf7f3ec66..a14ab81c8 100644 --- a/src/apply.c +++ b/src/apply.c @@ -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 */ diff --git a/src/artifact.c b/src/artifact.c index fbe67a3ce..7f90f150b 100644 --- a/src/artifact.c +++ b/src/artifact.c @@ -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. */ diff --git a/src/attrib.c b/src/attrib.c index 59d9155d2..17c6b930c 100644 --- a/src/attrib.c +++ b/src/attrib.c @@ -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; diff --git a/src/do.c b/src/do.c index 3b4a89040..f192c0a31 100644 --- 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 */ diff --git a/src/dothrow.c b/src/dothrow.c index 91ffef4c0..3f54c0f75 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -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 */ diff --git a/src/dungeon.c b/src/dungeon.c index a1539a13e..5db4049cb 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -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); diff --git a/src/eat.c b/src/eat.c index d7f0e747f..b23b11627 100644 --- 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)) diff --git a/src/hack.c b/src/hack.c index 7c865562c..a94ed9183 100644 --- a/src/hack.c +++ b/src/hack.c @@ -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); diff --git a/src/invent.c b/src/invent.c index e4a9cca6a..35285e650 100644 --- a/src/invent.c +++ b/src/invent.c @@ -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); diff --git a/src/mhitm.c b/src/mhitm.c index e24a9d37b..129f58f41 100644 --- a/src/mhitm.c +++ b/src/mhitm.c @@ -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; diff --git a/src/mklev.c b/src/mklev.c index 5d33569b0..c3bca3949 100644 --- a/src/mklev.c +++ b/src/mklev.c @@ -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), diff --git a/src/mon.c b/src/mon.c index 3a75573a7..bf3995256 100644 --- 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) diff --git a/src/shk.c b/src/shk.c index 7d2a79f79..94832bf38 100644 --- 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) diff --git a/src/trap.c b/src/trap.c index a7572f603..36fc43a96 100644 --- a/src/trap.c +++ b/src/trap.c @@ -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) diff --git a/src/vision.c b/src/vision.c index 4918b5c2f..10e01abec 100644 --- a/src/vision.c +++ b/src/vision.c @@ -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 { diff --git a/src/wizard.c b/src/wizard.c index 2076062ea..af53c81e0 100644 --- a/src/wizard.c +++ b/src/wizard.c @@ -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); diff --git a/src/zap.c b/src/zap.c index 3c6230717..b9d7a4ab1 100644 --- 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