From 02c4147893d9905608e86b2e6ea94b13eafd9df0 Mon Sep 17 00:00:00 2001 From: klorpa <30924131+klorpa@users.noreply.github.com> Date: Sat, 31 Aug 2024 15:28:42 -0500 Subject: [PATCH] Typos --- include/extern.h | 2 +- src/allmain.c | 2 +- src/apply.c | 6 +++--- src/artifact.c | 2 +- src/dog.c | 2 +- src/dogmove.c | 2 +- src/light.c | 2 +- src/mhitu.c | 2 +- src/objnam.c | 2 +- src/timeout.c | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/extern.h b/include/extern.h index d9a91b52f..0323963dd 100644 --- a/include/extern.h +++ b/include/extern.h @@ -9,7 +9,7 @@ * The placements of the NONNULLARG* and NONNULLPTRS macros were done * using the following rules: * These were the rules that were followed when determining which function - * parameters should be nonnul, and which are nullable: + * parameters should be nonnull, and which are nullable: * * 1. If the first use of, or reference to, the pointer parameter in the * function is a dereference, then the parameter will be considered diff --git a/src/allmain.c b/src/allmain.c index 024867dc8..ba027c422 100644 --- a/src/allmain.c +++ b/src/allmain.c @@ -796,7 +796,7 @@ newgame(void) return; } -/* show "welcome [back] to nethack" message at program startup */ +/* show "welcome [back] to NetHack" message at program startup */ void welcome(boolean new_game) /* false => restoring an old game */ { diff --git a/src/apply.c b/src/apply.c index bf867c3e5..7b3b0e5f0 100644 --- a/src/apply.c +++ b/src/apply.c @@ -984,7 +984,7 @@ beautiful(void) const char *res; int cha = ACURR(A_CHA); - /* don't bother complaining about the sexism; nethack is not real life */ + /* don't bother complaining about the sexism; NetHack is not real life */ res = ((cha >= 25) ? "sublime" /* 25 is the maximum possible */ : (cha >= 19) ? "splendorous" /* note: not "splendiferous" */ : (cha >= 16) ? ((poly_gender() == 1) ? "beautiful" : "handsome") @@ -3369,7 +3369,7 @@ use_pole(struct obj *obj, boolean autohit) * .52125. * .85458. * ...9... - * (Note: no roles in nethack can become expert or better + * (Note: no roles in NetHack can become expert or better * for polearm skill; Yeoman in slash'em can become expert.) */ min_range = 4; @@ -3700,7 +3700,7 @@ use_grapple(struct obj *obj) int clr = NO_COLOR; any = cg.zeroany; /* set all bits to zero */ - any.a_int = 1; /* use index+1 (cant use 0) as identifier */ + any.a_int = 1; /* use index+1 (can't use 0) as identifier */ start_menu(tmpwin, MENU_BEHAVE_STANDARD); any.a_int++; Sprintf(buf, "an object on the %s", surface(cc.x, cc.y)); diff --git a/src/artifact.c b/src/artifact.c index c02a6cfb7..49154001e 100644 --- a/src/artifact.c +++ b/src/artifact.c @@ -1801,7 +1801,7 @@ arti_invoke(struct obj *obj) any = cg.zeroany; /* set all bits to zero */ start_menu(tmpwin, MENU_BEHAVE_STANDARD); - /* use index+1 (cant use 0) as identifier */ + /* use index+1 (can't use 0) as identifier */ for (i = num_ok_dungeons = 0; i < svn.n_dgns; i++) { if (!svd.dungeons[i].dunlev_ureached) continue; diff --git a/src/dog.c b/src/dog.c index 1aab95644..054d2ffe6 100644 --- a/src/dog.c +++ b/src/dog.c @@ -939,7 +939,7 @@ dogfood(struct monst *mon, struct obj *obj) switch (obj->oclass) { case FOOD_CLASS: fx = (obj->otyp == CORPSE || obj->otyp == TIN || obj->otyp == EGG) - /* corpsenm might be NON_PM (special tin, unhatachable egg) */ + /* corpsenm might be NON_PM (special tin, unhatchable egg) */ ? obj->corpsenm : NON_PM; /* mons[NUMMONS] is a valid array entry, though not a valid monster; diff --git a/src/dogmove.c b/src/dogmove.c index 6452d8123..b84281c72 100644 --- a/src/dogmove.c +++ b/src/dogmove.c @@ -663,7 +663,7 @@ find_targ( /* if a long worm, only accept the head as a target */ && targ->mx == curx && targ->my == cury) /* not tail */ break; - /* If the pet can't see it, it assumes it aint there */ + /* If the pet can't see it, it assumes it ain't there */ targ = 0; } } diff --git a/src/light.c b/src/light.c index c51915a77..2c11a75c8 100644 --- a/src/light.c +++ b/src/light.c @@ -520,7 +520,7 @@ relink_light_sources(boolean ghostly) ls->id.a_monst = find_mid(nid, FM_EVERYWHERE); } if (!ls->id.a_monst) - impossible("relink_light_sources: cant find %c_id %d", + impossible("relink_light_sources: can't find %c_id %d", which, nid); } else impossible("relink_light_sources: bad type (%d)", ls->type); diff --git a/src/mhitu.c b/src/mhitu.c index 9a5ebf830..4a79cb96a 100644 --- a/src/mhitu.c +++ b/src/mhitu.c @@ -408,7 +408,7 @@ getmattk( /* liches have a touch attack for cold damage and also a spell attack; they won't use the spell for monster vs monster so become impotent - aganst cold resistant foes; change the touch damage from cold to + against cold resistant foes; change the touch damage from cold to physical if target will resist */ } else if (indx == 0 && attk->aatyp == AT_TUCH && attk->adtyp == AD_COLD && (udefend ? Cold_resistance : resists_cold(mdef)) diff --git a/src/objnam.c b/src/objnam.c index 727f91dbd..dfb6ab11d 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -1060,7 +1060,7 @@ minimal_xname(struct obj *obj) bareobj.spe = obj->spe; bufp = distant_name(&bareobj, xname); - /* undo forced setting of bareobj.blessed for cleric (preist[ess]); + /* undo forced setting of bareobj.blessed for cleric (priest[ess]); bufp is an obuf[] so a pointer into the middle of that is viable */ if (!strncmp(bufp, "uncursed ", 9)) bufp += 9; diff --git a/src/timeout.c b/src/timeout.c index 2cd53f7be..5414de47f 100644 --- a/src/timeout.c +++ b/src/timeout.c @@ -2703,7 +2703,7 @@ relink_timers(boolean ghostly) nid = curr->arg.a_uint; curr->arg.a_obj = find_oid(nid); if (!curr->arg.a_obj) - panic("cant find o_id %d", nid); + panic("can't find o_id %d", nid); curr->needs_fixup = 0; } else if (curr->kind == TIMER_MONSTER) { panic("relink_timers: no monster timer implemented");