REFACTOR [a vs an]
From /dev/humancontroller.
This commit is contained in:
parent
4bd24d3182
commit
f3e7012bdb
27 changed files with 39 additions and 39 deletions
|
@ -469,7 +469,7 @@ void AAS_DumpBSPData(void)
|
|||
Com_Memset( &bspworld, 0, sizeof(bspworld) );
|
||||
} //end of the function AAS_DumpBSPData
|
||||
//===========================================================================
|
||||
// load an bsp file
|
||||
// load a .bsp file
|
||||
//
|
||||
// Parameter: -
|
||||
// Returns: -
|
||||
|
|
|
@ -281,7 +281,7 @@ void AAS_FileInfo(void)
|
|||
} //end of the function AAS_FileInfo
|
||||
#endif //AASFILEDEBUG
|
||||
//===========================================================================
|
||||
// allocate memory and read a lump of a AAS file
|
||||
// allocate memory and read a lump of an AAS file
|
||||
//
|
||||
// Parameter: -
|
||||
// Returns: -
|
||||
|
|
|
@ -423,7 +423,7 @@ void AAS_Shutdown(void)
|
|||
//aas has not been initialized
|
||||
aasworld.initialized = qfalse;
|
||||
//NOTE: as soon as a new .bsp file is loaded the .bsp file memory is
|
||||
// freed an reallocated, so there's no need to free that memory here
|
||||
// freed and reallocated, so there's no need to free that memory here
|
||||
//print shutdown
|
||||
botimport.Print(PRT_MESSAGE, "AAS shutdown.\n");
|
||||
} //end of the function AAS_Shutdown
|
||||
|
|
|
@ -412,7 +412,7 @@ int AAS_BestReachableArea(vec3_t origin, vec3_t mins, vec3_t maxs, vec3_t goalor
|
|||
else
|
||||
{
|
||||
//it can very well happen that the AAS_PointAreaNum function tells that
|
||||
//a point is in an area and that starting a AAS_TraceClientBBox from that
|
||||
//a point is in an area and that starting an AAS_TraceClientBBox from that
|
||||
//point will return trace.startsolid qtrue
|
||||
#if 0
|
||||
if (AAS_PointAreaNum(start))
|
||||
|
|
|
@ -713,7 +713,7 @@ int Characteristic_Integer(int character, int index)
|
|||
} //end else if
|
||||
else
|
||||
{
|
||||
botimport.Print(PRT_ERROR, "characteristic %d is not a integer\n", index);
|
||||
botimport.Print(PRT_ERROR, "characteristic %d is not an integer\n", index);
|
||||
return 0;
|
||||
} //end else if
|
||||
// return 0;
|
||||
|
|
|
@ -2080,7 +2080,7 @@ bot_chat_t *BotLoadInitialChat(char *chatfile, char *chatname)
|
|||
return NULL;
|
||||
} //end if
|
||||
StripDoubleQuotes(token.string);
|
||||
//after the chat name we expect a opening brace
|
||||
//after the chat name we expect an opening brace
|
||||
if (!PC_ExpectTokenString(source, "{"))
|
||||
{
|
||||
FreeSource(source);
|
||||
|
|
|
@ -1018,7 +1018,7 @@ void BotUpdateEntityItems(void)
|
|||
for (li = levelitems; li; li = nextli)
|
||||
{
|
||||
nextli = li->next;
|
||||
//if it is a item that will time out
|
||||
//if it is an item that will time out
|
||||
if (li->timeout)
|
||||
{
|
||||
//timeout the item
|
||||
|
|
|
@ -764,7 +764,7 @@ int BotGetReachabilityToGoal(vec3_t origin, int areanum,
|
|||
reachnum = AAS_NextAreaReachability(areanum, reachnum))
|
||||
{
|
||||
#ifdef AVOIDREACH
|
||||
//check if it isn't an reachability to avoid
|
||||
//check if it isn't a reachability to avoid
|
||||
for (i = 0; i < MAX_AVOIDREACH; i++)
|
||||
{
|
||||
if (avoidreach[i] == reachnum && avoidreachtimes[i] >= AAS_Time()) break;
|
||||
|
|
|
@ -102,7 +102,7 @@ struct weaponinfo_s;
|
|||
#define ACTION_FOLLOWME 0x08000000
|
||||
#define ACTION_JUMPEDLASTFRAME 0x10000000
|
||||
|
||||
//the bot input, will be converted to an usercmd_t
|
||||
//the bot input, will be converted to a usercmd_t
|
||||
typedef struct bot_input_s
|
||||
{
|
||||
float thinktime; //time since last output (in seconds)
|
||||
|
|
|
@ -117,7 +117,7 @@ int PC_ExpectTokenType(source_t *source, int type, int subtype, token_t *token);
|
|||
int PC_ExpectAnyToken(source_t *source, token_t *token);
|
||||
//returns true when the token is available
|
||||
int PC_CheckTokenString(source_t *source, char *string);
|
||||
//returns true an reads the token when a token with the given type is available
|
||||
//returns true and reads the token when a token with the given type is available
|
||||
int PC_CheckTokenType(source_t *source, int type, int subtype, token_t *token);
|
||||
//skip tokens until the given token string is read
|
||||
int PC_SkipUntilString(source_t *source, char *string);
|
||||
|
|
|
@ -879,7 +879,7 @@ int PS_ReadToken(script_t *script, token_t *token)
|
|||
{
|
||||
if (!PS_ReadString(script, token, '\"')) return 0;
|
||||
} //end if
|
||||
//if an literal
|
||||
//if a literal
|
||||
else if (*script->script_p == '\'')
|
||||
{
|
||||
//if (!PS_ReadLiteral(script, token)) return 0;
|
||||
|
|
|
@ -201,7 +201,7 @@ int PS_ExpectTokenType(script_t *script, int type, int subtype, token_t *token);
|
|||
int PS_ExpectAnyToken(script_t *script, token_t *token);
|
||||
//returns true when the token is available
|
||||
int PS_CheckTokenString(script_t *script, char *string);
|
||||
//returns true an reads the token when a token with the given type is available
|
||||
//returns true and reads the token when a token with the given type is available
|
||||
int PS_CheckTokenType(script_t *script, int type, int subtype, token_t *token);
|
||||
//skip tokens until the given token string is read
|
||||
int PS_SkipUntilString(script_t *script, char *string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue