From 9c46a26af4efe0a2a57febbb685e770c6d51b287 Mon Sep 17 00:00:00 2001 From: Mak Kolybabi Date: Wed, 19 Sep 2018 22:48:43 -0500 Subject: [PATCH] Grammar and punctuation fixes. --- DEVEL/code_features.txt | 2 +- dat/quest.txt | 2 +- doc/tmac.n | 2 +- doc/window.doc | 8 ++++---- src/objects.c | 2 +- src/pray.c | 2 +- src/vision.c | 2 +- sys/wince/mhcmd.c | 2 +- sys/wince/mhmsgwnd.c | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/DEVEL/code_features.txt b/DEVEL/code_features.txt index 1c60e024e..c5eb3ce80 100644 --- a/DEVEL/code_features.txt +++ b/DEVEL/code_features.txt @@ -20,7 +20,7 @@ Here's how to do it: - The example above will alert the users for a new feature added in 3.6.0 via a one-liner via pline(), but you could get more elaborate (just make sure it is all done - in the 'if' code block.. + in the 'if' code block. Once the user finds the alert no longer useful, or becoming annoying, they can set the "suppress_alert" option. diff --git a/dat/quest.txt b/dat/quest.txt index 5f5aeeed2..52ca68d21 100644 --- a/dat/quest.txt +++ b/dat/quest.txt @@ -2707,7 +2707,7 @@ and you may be able to defeat him." "If you are %a at all times you may succeed, %p." %E %Cp Tou 00034 -"Let all who meet you on your journey know that you are on an quest for +"Let all who meet you on your journey know that you are on a quest for %l and grant safe passage." %E %Cc Tou 00035 diff --git a/doc/tmac.n b/doc/tmac.n index 270a78a06..0d445d34d 100644 --- a/doc/tmac.n +++ b/doc/tmac.n @@ -50,7 +50,7 @@ .\" Version 1.6 March 15, 1989 Matt.Bishop@dartmouth.edu .\" ..!bear.dartmouth.edu!bishop .\" Fixed a bug in footnote handling (again, sigh ...) This one -.\" occurred when the the "fo" trap position was reset just beneath +.\" occurred when the "fo" trap position was reset just beneath .\" the current line; the footnote overflow trap would kick in and .\" never be closed. .\" diff --git a/doc/window.doc b/doc/window.doc index 59b90255d..de6555fe3 100644 --- a/doc/window.doc +++ b/doc/window.doc @@ -177,7 +177,7 @@ int nhgetch() -- Returns a single character input from the user. changed and also return ASCII 033 in this case. int nh_poskey(int *x, int *y, int *mod) -- Returns a single character input from the user or a - a positioning event (perhaps from a mouse). If the + positioning event (perhaps from a mouse). If the return value is non-zero, a character was typed, else, a position in the MAP window is returned in x, y and mod. mod may be one of @@ -602,7 +602,7 @@ getmsghistory(init) If init is TRUE, start over again from most recent message. putmsghistory(msg) - -- The is the counterpart to getmsghistory() for restores + -- This is the counterpart to getmsghistory() for restores used to reload the port's message recall buffer. The routine is called repeatedly from the core restore routine, starting with the oldest message first, and @@ -693,7 +693,7 @@ when processing options, either in the config file, or by the 'O' command. You may be wondering what values your window port will find in the iflags.wc_* and iflags.wc2_* fields for options that the user has not -specified in his/her config file. Put another way, how does you port code +specified in his/her config file. Put another way, how does your port code tell if an option has not been set? The next paragraph explains that. If the core does not set an option, it will still be initialized @@ -1068,7 +1068,7 @@ When writing a new window-port, you need to follow the following guidelines: WINOBJ (if you want the NetHack binary to include them, that is). 9) Look at your port's portmain.c (the file containing main()) and make - sure that all of the calls match the the requirements laid out in + sure that all of the calls match the requirements laid out in Section VII. Now, proceed with compilation and installation as usual. Don't forget diff --git a/src/objects.c b/src/objects.c index 0809ff41a..fcca3b0f7 100644 --- a/src/objects.c +++ b/src/objects.c @@ -368,7 +368,7 @@ HELM("helm of telepathy", "visored helmet", * There is code in obj.h, objnam.c, mon.c, read.c that assumes (2). * (1) The dragon scale mails and the dragon scales are together. * (2) That the order of the dragon scale mail and dragon scales - * is the the same as order of dragons defined in monst.c. + * is the same as order of dragons defined in monst.c. */ #define DRGN_ARMR(name,mgc,power,cost,ac,color) \ ARMOR(name, None, 1, mgc, 1, power, 0, 5, 40, \ diff --git a/src/pray.c b/src/pray.c index 8d4c5003d..5d0d456fc 100644 --- a/src/pray.c +++ b/src/pray.c @@ -921,7 +921,7 @@ aligntyp g_align; * - fix all of your problems; * - do you a gratuitous favor. * - * If you make it to the the last category, you roll randomly again + * If you make it to the last category, you roll randomly again * to see what they do for you. * * If your luck is at least 0, then you are guaranteed rescued from diff --git a/src/vision.c b/src/vision.c index 2dcc85b8b..be87051d9 100644 --- a/src/vision.c +++ b/src/vision.c @@ -1916,7 +1916,7 @@ char *limits; /* points at range limit for current row, or NULL */ * shadow limit imposed by the far block (right) then use the far * wall as our new far block when we recurse. * - * If the limits are the the same, and the far block really exists + * If the limits are the same, and the far block really exists * (fb_row >= 0) then do the same as above. * * Normally, the check would be for the far wall being closer OR EQUAL diff --git a/sys/wince/mhcmd.c b/sys/wince/mhcmd.c index 98730dbce..c82bf7624 100644 --- a/sys/wince/mhcmd.c +++ b/sys/wince/mhcmd.c @@ -1161,7 +1161,7 @@ CalculateCellSize(HWND hWnd, LPSIZE pSize, LPSIZE pWindowSize) hdc = GetDC(hWnd); /* if windows size is specified - attempt ro stretch cells across - the the window size. If not - make default cell size based on + the window size. If not - make default cell size based on 10 points font. Make sure that cell cesize does not exceeds 20 points */ if (pWindowSize->cx > 0) diff --git a/sys/wince/mhmsgwnd.c b/sys/wince/mhmsgwnd.c index 818f72aed..1c8976564 100644 --- a/sys/wince/mhmsgwnd.c +++ b/sys/wince/mhmsgwnd.c @@ -34,7 +34,7 @@ typedef struct mswin_nethack_message_window { int yMax; /* maximum vertical scrolling position */ int xPage; /* page size of horizontal scroll bar */ int lines_last_turn; /* lines added during the last turn */ - int dont_care; /* flag the the user does not care if messages are lost */ + int dont_care; /* flag the user does not care if messages are lost */ } NHMessageWindow, *PNHMessageWindow; static TCHAR szMessageWindowClass[] = TEXT("MSNHMessageWndClass");