Skip to content

Commit f3e7012

Browse files
committed
REFACTOR [a vs an]
From /dev/humancontroller.
1 parent 4bd24d3 commit f3e7012

27 files changed

+39
-39
lines changed

ChangeLog

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@
279279
added Wheel support to the DirectInput code IN_DIMouse (in_mouse 1)
280280
tweaked the Wheel mouse reading for in_mouse -1 (old win32 input code)
281281
handle correctly when zDelta is > 120
282-
provide a in_logitechbug cvar to handle buggy Logitech MouseWare driver sending wheel events twice
282+
provide an in_logitechbug cvar to handle buggy Logitech MouseWare driver sending wheel events twice
283283

284284
2002-9-26 Timothee Besset <[email protected]>
285285
+ ATVI Quake 3 1.32 Patch #38

code/botlib/be_aas_bspq3.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ void AAS_DumpBSPData(void)
469469
Com_Memset( &bspworld, 0, sizeof(bspworld) );
470470
} //end of the function AAS_DumpBSPData
471471
//===========================================================================
472-
// load an bsp file
472+
// load a .bsp file
473473
//
474474
// Parameter: -
475475
// Returns: -

code/botlib/be_aas_file.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ void AAS_FileInfo(void)
281281
} //end of the function AAS_FileInfo
282282
#endif //AASFILEDEBUG
283283
//===========================================================================
284-
// allocate memory and read a lump of a AAS file
284+
// allocate memory and read a lump of an AAS file
285285
//
286286
// Parameter: -
287287
// Returns: -

code/botlib/be_aas_main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ void AAS_Shutdown(void)
423423
//aas has not been initialized
424424
aasworld.initialized = qfalse;
425425
//NOTE: as soon as a new .bsp file is loaded the .bsp file memory is
426-
// freed an reallocated, so there's no need to free that memory here
426+
// freed and reallocated, so there's no need to free that memory here
427427
//print shutdown
428428
botimport.Print(PRT_MESSAGE, "AAS shutdown.\n");
429429
} //end of the function AAS_Shutdown

code/botlib/be_aas_reach.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ int AAS_BestReachableArea(vec3_t origin, vec3_t mins, vec3_t maxs, vec3_t goalor
412412
else
413413
{
414414
//it can very well happen that the AAS_PointAreaNum function tells that
415-
//a point is in an area and that starting a AAS_TraceClientBBox from that
415+
//a point is in an area and that starting an AAS_TraceClientBBox from that
416416
//point will return trace.startsolid qtrue
417417
#if 0
418418
if (AAS_PointAreaNum(start))

code/botlib/be_ai_char.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ int Characteristic_Integer(int character, int index)
713713
} //end else if
714714
else
715715
{
716-
botimport.Print(PRT_ERROR, "characteristic %d is not a integer\n", index);
716+
botimport.Print(PRT_ERROR, "characteristic %d is not an integer\n", index);
717717
return 0;
718718
} //end else if
719719
// return 0;

code/botlib/be_ai_chat.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,7 @@ bot_chat_t *BotLoadInitialChat(char *chatfile, char *chatname)
20802080
return NULL;
20812081
} //end if
20822082
StripDoubleQuotes(token.string);
2083-
//after the chat name we expect a opening brace
2083+
//after the chat name we expect an opening brace
20842084
if (!PC_ExpectTokenString(source, "{"))
20852085
{
20862086
FreeSource(source);

code/botlib/be_ai_goal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ void BotUpdateEntityItems(void)
10181018
for (li = levelitems; li; li = nextli)
10191019
{
10201020
nextli = li->next;
1021-
//if it is a item that will time out
1021+
//if it is an item that will time out
10221022
if (li->timeout)
10231023
{
10241024
//timeout the item

code/botlib/be_ai_move.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ int BotGetReachabilityToGoal(vec3_t origin, int areanum,
764764
reachnum = AAS_NextAreaReachability(areanum, reachnum))
765765
{
766766
#ifdef AVOIDREACH
767-
//check if it isn't an reachability to avoid
767+
//check if it isn't a reachability to avoid
768768
for (i = 0; i < MAX_AVOIDREACH; i++)
769769
{
770770
if (avoidreach[i] == reachnum && avoidreachtimes[i] >= AAS_Time()) break;

code/botlib/botlib.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct weaponinfo_s;
102102
#define ACTION_FOLLOWME 0x08000000
103103
#define ACTION_JUMPEDLASTFRAME 0x10000000
104104

105-
//the bot input, will be converted to an usercmd_t
105+
//the bot input, will be converted to a usercmd_t
106106
typedef struct bot_input_s
107107
{
108108
float thinktime; //time since last output (in seconds)

code/botlib/l_precomp.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ int PC_ExpectTokenType(source_t *source, int type, int subtype, token_t *token);
117117
int PC_ExpectAnyToken(source_t *source, token_t *token);
118118
//returns true when the token is available
119119
int PC_CheckTokenString(source_t *source, char *string);
120-
//returns true an reads the token when a token with the given type is available
120+
//returns true and reads the token when a token with the given type is available
121121
int PC_CheckTokenType(source_t *source, int type, int subtype, token_t *token);
122122
//skip tokens until the given token string is read
123123
int PC_SkipUntilString(source_t *source, char *string);

code/botlib/l_script.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ int PS_ReadToken(script_t *script, token_t *token)
879879
{
880880
if (!PS_ReadString(script, token, '\"')) return 0;
881881
} //end if
882-
//if an literal
882+
//if a literal
883883
else if (*script->script_p == '\'')
884884
{
885885
//if (!PS_ReadLiteral(script, token)) return 0;

code/botlib/l_script.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ int PS_ExpectTokenType(script_t *script, int type, int subtype, token_t *token);
201201
int PS_ExpectAnyToken(script_t *script, token_t *token);
202202
//returns true when the token is available
203203
int PS_CheckTokenString(script_t *script, char *string);
204-
//returns true an reads the token when a token with the given type is available
204+
//returns true and reads the token when a token with the given type is available
205205
int PS_CheckTokenType(script_t *script, int type, int subtype, token_t *token);
206206
//skip tokens until the given token string is read
207207
int PS_SkipUntilString(script_t *script, char *string);

code/client/cl_main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3954,7 +3954,7 @@ int CL_ServerStatus( char *serverAddress, char *serverStatusString, int maxLen )
39543954

39553955
// if this server status request has the same address
39563956
if ( NET_CompareAdr( to, serverStatus->address) ) {
3957-
// if we recieved an response for this server status request
3957+
// if we received a response for this server status request
39583958
if (!serverStatus->pending) {
39593959
Q_strncpyz(serverStatusString, serverStatus->string, maxLen);
39603960
serverStatus->retrieved = qtrue;

code/client/snd_openal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ sfxHandle_t S_AL_RegisterSound( const char *sample, qboolean compressed )
491491
=================
492492
S_AL_BufferGet
493493
494-
Return's an sfx's buffer
494+
Return's a sfx's buffer
495495
=================
496496
*/
497497
static

code/game/ai_dmq3.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void BotSetUserInfo(bot_state_t *bs, char *key, char *value);
7272
void BotSetTeamStatus(bot_state_t *bs);
7373
//returns the name of the client
7474
char *ClientName(int client, char *name, int size);
75-
//returns an simplyfied client name
75+
//returns a simplified client name
7676
char *EasyClientName(int client, char *name, int size);
7777
//returns the skin used by the client
7878
char *ClientSkin(int client, char *skin, int size);

code/qcommon/huffman.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ void Huff_Decompress(msg_t *mbuf, int offset) {
362362
for ( j = 0; j < cch; j++ ) {
363363
ch = 0;
364364
// don't overflow reading from the messages
365-
// FIXME: would it be better to have a overflow check in get_bit ?
365+
// FIXME: would it be better to have an overflow check in get_bit ?
366366
if ( (bloc >> 3) > size ) {
367367
seq[j] = 0;
368368
break;

code/qcommon/md4.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct mdfour {
3838

3939
/* NOTE: This code makes no attempt to be fast!
4040
41-
It assumes that a int is at least 32 bits long
41+
It assumes that an int is at least 32 bits long
4242
*/
4343

4444
static struct mdfour *m;

code/qcommon/unzip.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,11 @@ local uLong unzlocal_SearchCentralDir(pzlib_filefunc_def,filestream)
376376

377377
/*
378378
Open a Zip file. path contain the full pathname (by example,
379-
on a Windows NT computer "c:\\test\\zlib114.zip" or on an Unix computer
379+
on a Windows NT computer "c:\\test\\zlib114.zip" or on a Unix computer
380380
"zlib/zlib114.zip".
381381
If the zipfile cannot be opened (file doesn't exist or in not valid), the
382382
return value is NULL.
383-
Else, the return value is a unzFile Handle, usable with other function
383+
Else, the return value is an unzFile Handle, usable with other function
384384
of this unzip package.
385385
*/
386386
extern unzFile ZEXPORT unzOpen2 (path, pzlib_filefunc_def)

code/qcommon/unzip.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ extern int ZEXPORT unzStringFileNameCompare OF ((const char* fileName1,
136136
extern unzFile ZEXPORT unzOpen OF((const char *path));
137137
/*
138138
Open a Zip file. path contain the full pathname (by example,
139-
on a Windows XP computer "c:\\zlib\\zlib113.zip" or on an Unix computer
139+
on a Windows XP computer "c:\\zlib\\zlib113.zip" or on a Unix computer
140140
"zlib/zlib113.zip".
141141
If the zipfile cannot be opened (file don't exist or in not valid), the
142142
return value is NULL.
143-
Else, the return value is a unzFile Handle, usable with other function
143+
Else, the return value is an unzFile Handle, usable with other function
144144
of this unzip package.
145145
*/
146146

code/qcommon/vm_local.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2828
#define OPSTACK_MASK (OPSTACK_SIZE-1)
2929

3030
// don't change
31-
// Hardcoded in q3asm an reserved at end of bss
31+
// Hardcoded in q3asm a reserved at end of bss
3232
#define PROGRAM_STACK_SIZE 0x10000
3333
#define PROGRAM_STACK_MASK (PROGRAM_STACK_SIZE-1)
3434

code/qcommon/vm_powerpc_asm.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ static const struct powerpc_operand powerpc_operands[] =
374374
/* The SH field in an X or M form instruction. */
375375
#define SH RS + 1
376376
#define SH_MASK (0x1f << 11)
377-
/* The other UIMM field in a EVX form instruction. */
377+
/* The other UIMM field in an EVX form instruction. */
378378
#define EVUIMM SH
379379
{ 0x1f, 11, NULL, 0 },
380380

@@ -657,19 +657,19 @@ insert_rbs (unsigned long insn,
657657
#define SC(op, sa, lk) (OP (op) | ((((unsigned long)(sa)) & 1) << 1) | ((lk) & 1))
658658
#define SC_MASK (OP_MASK | (((unsigned long)0x3ff) << 16) | (((unsigned long)1) << 1) | 1)
659659

660-
/* An VX form instruction. */
660+
/* A VX form instruction. */
661661
#define VX(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x7ff))
662662

663-
/* The mask for an VX form instruction. */
663+
/* The mask for a VX form instruction. */
664664
#define VX_MASK VX(0x3f, 0x7ff)
665665

666-
/* An VA form instruction. */
666+
/* A VA form instruction. */
667667
#define VXA(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x03f))
668668

669-
/* The mask for an VA form instruction. */
669+
/* The mask for a VA form instruction. */
670670
#define VXA_MASK VXA(0x3f, 0x3f)
671671

672-
/* An VXR form instruction. */
672+
/* A VXR form instruction. */
673673
#define VXR(op, xop, rc) (OP (op) | (((rc) & 1) << 10) | (((unsigned long)(xop)) & 0x3ff))
674674

675675
/* The mask for a VXR form instruction. */

code/renderer/tr_image_png.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ static qboolean UnfilterImage(uint8_t *DecompressedData,
962962
PixelLeft = DecompPtr;
963963

964964
/*
965-
* We only have a upleft pixel if we are on the second line or above.
965+
* We only have an upleft pixel if we are on the second line or above.
966966
*/
967967

968968
if(h > 0)
@@ -2131,7 +2131,7 @@ void R_LoadPNG(const char *name, byte **pic, int *width, int *height)
21312131
ChunkHeaderType = BigLong(CH->Type);
21322132

21332133
/*
2134-
* Check if the chunk is an PLTE.
2134+
* Check if the chunk is a PLTE.
21352135
*/
21362136

21372137
if(!(ChunkHeaderType == PNG_ChunkType_PLTE))
@@ -2202,7 +2202,7 @@ void R_LoadPNG(const char *name, byte **pic, int *width, int *height)
22022202
}
22032203

22042204
/*
2205-
* transparency information is sometimes stored in an tRNS chunk
2205+
* transparency information is sometimes stored in a tRNS chunk
22062206
*/
22072207

22082208
/*
@@ -2233,7 +2233,7 @@ void R_LoadPNG(const char *name, byte **pic, int *width, int *height)
22332233
ChunkHeaderType = BigLong(CH->Type);
22342234

22352235
/*
2236-
* Check if the chunk is an tRNS.
2236+
* Check if the chunk is a tRNS.
22372237
*/
22382238

22392239
if(!(ChunkHeaderType == PNG_ChunkType_tRNS))

code/tools/lcc/doc/4.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ <h2><a NAME="symbols">5.3 Symbols</a></h2>
9999

100100
<h2><a NAME="operators">5.5 Dag Operators</a></h2>
101101

102-
<p>The <code>op</code> field a of <code>node</code> structure holds a dag operator, which
102+
<p>The <code>op</code> field of a <code>node</code> structure holds a dag operator, which
103103
consists of a generic operator, a type suffix, and a size indicator. The type suffixes
104104
are:</p>
105105

@@ -516,7 +516,7 @@ <h2><a NAME="operators">5.5 Dag Operators</a></h2>
516516
<p>The type suffix for a conversion operator denotes the type of the result and the size
517517
indicator gives the size of the result. For example, <code>CVUI4</code> converts an
518518
unsigned (<code>U</code>) to a 4-byte signed integer (<code>I4</code>). The <code>syms[0]</code>
519-
field points to a symbol-table entry for a integer constant that gives the size of the
519+
field points to a symbol-table entry for an integer constant that gives the size of the
520520
source operand. For example, if <code>syms[0]</code> in a <code>CVUI4</code> points to a
521521
symbol-table entry for 2, the conversion widens a 2-byte unsigned integer to a 4-byte
522522
signed integer. Conversions that widen unsigned integers zero-extend; those that widen

code/tools/lcc/doc/install.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ <h2><a NAME="win32">Installation on Windows NT 4.0 or Windows 95/98</a></h2>
722722
<h2><a NAME="bugs">Reporting Bugs</a></h2>
723723

724724
<p>lcc is a large, complex program. We find and repair errors routinely. If you think that
725-
you've found a error, follow the steps below, which are adapted from the instructions in
725+
you've found an error, follow the steps below, which are adapted from the instructions in
726726
Chapter 1 of <cite>A Retargetable C Compiler: Design and Implementation</cite>.
727727

728728
<ol>
@@ -751,7 +751,7 @@ <h2><a NAME="bugs">Reporting Bugs</a></h2>
751751
HREF="ftp://ftp.cs.princeton.edu/pub/lcc"><code>pub/lcc</code></a>. A <a
752752
HREF="ftp://ftp.cs.princeton.edu/pub/lcc/README"><code>README</code></a> file there gives
753753
acquistion details, and the <a HREF="../LOG"><code>LOG</code></a> file reports what errors
754-
were fixed and when they were fixed. If you report a error that's been fixed, you might
754+
were fixed and when they were fixed. If you report an error that's been fixed, you might
755755
get a canned reply.</li>
756756
<li>Send your program by electronic mail to <code>[email protected]</code>. Please
757757
send only valid C programs; put all remarks in C comments so that we can process reports

code/tools/lcc/src/list.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ int length(List list) {
3333
return n;
3434
}
3535

36-
/* ltov - convert list to an NULL-terminated vector allocated in arena */
36+
/* ltov - convert list to a NULL-terminated vector allocated in arena */
3737
void *ltov(List *list, unsigned arena) {
3838
int i = 0;
3939
void **array = newarray(length(*list) + 1, sizeof array[0], arena);

misc/nsis/ioquake3-q3ctc.nsi

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; sample NSIS description file for a ioquake3 mod installer
1+
; sample NSIS description file for an ioquake3 mod installer
22

33
!define NAME "Catch the Chicken"
44
!define FSNAME "ioquake3-q3ctc"

0 commit comments

Comments
 (0)